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

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

Subject: Re: Using value-of to extract non-escaped characters
From: Ralph Holz <Ralph.Holz@xxxxxxxxxx>
Date: Sun, 31 Mar 2002 13:27:48 +0100
xsl must not contain character
Mike,

> XML Spy gives me: "name must not contain that character".

Your questions are hard to understand and answer because it's
not clear what your XML really looks like. I think it will be
much easier to answer if you explained what you mean by a
"link" in this context. It might just be that you're attempting
to reference a non-XML file as an external general entity.
Show us your code.

No, that's not it.


My XML code looks like:

(first critical part)

<parameter>
<name>swRemote</name>
<value>swSaveEnabled='true' swVolume='true' swRestart='true' swPausePlay='true' swFastForward='true' swContextMenu='true'</value>
</parameter>


(second critical part)

<parameter>
                        <name>bgColor</name>
                        <value>#333366</value>
</parameter>

These parameters should be transformed to

1) HTML attributes of the <embed> element (first case)
2) HTML element <param> and its attributes (second case)

What I meant was that the content of the <value> elements contains characters like #, = and integers. This poses no problem for validation, because I declared the value element to be of type "xs:string" (in the Schema). However, when I try to use <value-of select="value"> in my XSL-T, then I get the errors

"Must not contain "=" character." (in the first case)
"Must not contain # character." (in the second case)

That led me to the assumption that the <value> elements' content cannot be processed by XSL-T (or by XML Spy).

I wonder how to resolve this without having to escape the characters.

Ralph


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.