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

Re: Re: Using value-of to extract non-escaped characte

Subject: Re: Re: Using value-of to extract non-escaped characters
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Sun, 31 Mar 2002 08:51:22 -0800 (PST)
sun characte
Ralph Holz <Ralph dot Holz at unique dot com> wrote:

> >In general, XSLT processors can handle these caracters.
> >I guess you tried to build an element node and assigned
> >one of the suspect values to its name. Can you post the
> >relevant XSLT snippets where the errors occur?
> 
> Sure, but I'll post all the code and the XML file.  I hope that it is

> readable on your e-mail clients.
> 
> I don't get a line where the error occurs, sorry.
> 
> ========= xsl 
> 
>
======================================================================

[snip]

> <xsl:variable 
> name="value"><xsl:value-of select="value" /></xsl:variable>

[snip]

> <xsl:attribute 
> name="{$value}"><xsl:value-of select="value" /></xsl:attribute>

This is the place of the error and the error is exactly the one
predicted by Joerg -- you're trying to create an attribute with a name,
which does not obey the allowed syntax for a QName -- in your case it
contains characters like "#", "=", " ", or " ' ".

Probably you meant just:

> <xsl:attribute 
> name="value"><xsl:value-of select="value" /></xsl:attribute>


Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Yahoo! Greetings - send holiday greetings for Easter, Passover
http://greetings.yahoo.com/

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.