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

RE: Re: Does anyone know how to make IE less useless f

Subject: RE: Re: Does anyone know how to make IE less useless for XSLT developement?
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 22 Feb 2006 10:56:03 -0000
make internet explorer useless
> OK, for anyone interested, I eventually traced down the problem.
> Internet Explorer (MSXML) cannot handle the following template. And
> now I have another question.
> 
> <xsl:template match="HtmlAttribute">
>     <xsl:attribute name="@name"><xsl:value-of 
> select="text()"/></xsl:attribute>
> </xsl:template>
> 
> So is this a bug in MSXML?

The above code is in error: the value of the name attribute must be a valid
name. If you want to compute the name, you should write name="{@name}".

XSLT 1.0 processors are given discretion as to how they handle such errors,
in many cases they can either report the error or ignore it (in this case,
by not writing the relevant attribute). So there is no bug here.

XSLT 2.0 requires this error (and many other similar errors) to be reported
rather than being silently ignored.

Michael Kay
http://www.saxonica.com/

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.