Hi Kamal,
I guess that's what the specification implies by:
The following are all errors:
* Adding an attribute to an element after children have been added to
it; implementations may either signal the error or ignore the attribute.
http://www.w3.org/TR/xslt#creating-attributes
Although I might misunderstand.
- Sylvain
Kamal Bhatt a écrit :
Not too sure if this is an oddity of XSLT or of my parser (Xalan in
cocoon) but I found that if the xsl:attribute value is not defined as
the first thing, it is ignored completely. Eg
....
<img>
<xsl:attribute name="src"><xsl:value-of
select="some-value"/></xsl:attribute>
<height>12</height>
</img>
will work
<img>
<height>12</height>
<xsl:attribute name="src"><xsl:value-of
select="some-value"/></xsl:attribute>
</img>
will not.
This may seem obvious to some people, but it actually wasted a lot of
time for us.
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--