|
Subject:
|
from color="red" to color='red'
|
|
Posted By:
|
juaniux
|
Post Date:
|
11/11/2004 6:04:37 PM
|
I need to copy an xml document and replace the double quotes that surround attribute values with single quotes.
From: <?xml version="1.0"?>
To: <?xml version='1.0'?>
juan
|
|
Reply By:
|
joefawcett
|
Reply Date:
|
11/12/2004 3:58:00 AM
|
Not possible with msxml, what parsers/processors can you use? Strictly speaking it shouldn't matter so is outside of the XSLT domain. You could parse the document as a straight text file and use regular expressions. You would also have to cope with single quotes within the value and replace these with '
Why do you need to do this, sounds abit mis-guided?
--
Joe (Microsoft MVP - XML)
|
|
Reply By:
|
juaniux
|
Reply Date:
|
11/16/2004 3:18:00 PM
|
The reason is I need to read a small xml document onto a string using javascript. And my javascript didn't like the double quotes.
Ideally I would like to convert a node-set to string within the xslt.
|