Wrox Programmer Forums
Go Back   Wrox Programmer Forums > XML > XSLT
|
XSLT General questions and answers about XSLT. For issues strictly specific to the book XSLT 1.1 Programmers Reference, please post to that forum instead.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the XSLT section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old November 11th, 2004, 07:04 PM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to juaniux
Default from color="red" to color='red'

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
 
Old November 12th, 2004, 04:58 AM
joefawcett's Avatar
Wrox Author
 
Join Date: Jun 2003
Posts: 3,074
Thanks: 1
Thanked 38 Times in 37 Posts
Default

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
Code:
&apos;
Why do you need to do this, sounds abit mis-guided?




--

Joe (Microsoft MVP - XML)
 
Old November 16th, 2004, 04:18 PM
Registered User
 
Join Date: Oct 2004
Posts: 5
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via Yahoo to juaniux
Default

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.





Similar Threads
Thread Thread Starter Forum Replies Last Post
[red]Setting prob[/red] shivanshub ASP.NET 2.0 Professional 1 September 12th, 2006 10:01 AM
Dreaded red X sibbs Dreamweaver (all versions) 3 February 17th, 2006 07:56 PM
change font color of label red pritz BOOK: Professional JavaScript for Web Developers ISBN: 978-0-7645-7908-0 0 November 14th, 2005 03:48 AM
Red Hat 9 Installation dhirajkhanna Linux 9 July 4th, 2005 07:01 AM
Red Hat 9 as a Server Porter200 Linux 1 November 15th, 2004 07:53 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.