[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Copying nodes in XSLT, quoting goes funny.
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|