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

Copying nodes in XSLT, quoting goes funny.

Subject: Copying nodes in XSLT, quoting goes funny.
From: David <xslt@xxxxxxxxxxxxxxxxx>
Date: Tue, 15 Apr 2008 16:08:34 -0400
 Copying nodes in XSLT
Hello,

I am using the PHP XSLT extension to convert an XML document to a valid
HTML document.

I am copying some of the XML document to the HTML document using
<xsl:copy-of select="." />

Trouble is, on the outputted document it gives me a tag like this :

<span style="background-color: #ff4411;" onclick='doSomethingFun("Hello
world!!!");' />

Looks like because there are double quotes within the value, it is using
single quotes. But the other attribute is using double quotes.

This causes my website not to work in IE6 ( which I unfortunately have to
support ).

Is there anyway to specify that all attributes should be quote one way, and
if there are quotes within to use entities?

I am using PHP 5, XSLTProcessor class. When I call the method
'hasExsltSupport()' on that class it returns true, which means I am using
this library : http://xmlsoft.org/XSLT/EXSLT/index.html

Any ideas on how to have the same quotes for all the attributes?

Thanks,

David

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.