[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
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.
Re: [xsl] a bit of distraction ' quiz of XSLT 1.0 oddities'
Subject: Re: [xsl] a bit of distraction ' quiz of XSLT 1.0 oddities' From: Kamal Bhatt <kbhatt@xxxxxxxxx> Date: Tue, 03 Jan 2006 09:59:46 +1100 |
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.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] a bit of distraction ' qu, Geert Josten | Thread | Re: [xsl] a bit of distraction ' qu, Sylvain Hellegouarch |
[xsl] best practices for managing x, Chris Johnson | Date | RE: [xsl] best practices for managi, Michael Kay |
Month |
Keywords