[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: a bit of distraction ' quiz of XSLT 1.0 oddities'

Subject: Re: a bit of distraction ' quiz of XSLT 1.0 oddities'
From: Sylvain Hellegouarch <sh@xxxxxxxxxx>
Date: Tue, 03 Jan 2006 00:10:53 +0100
Re:  a bit of distraction ' quiz of XSLT 1.0 oddities'
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 icrit :
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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.