Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > XML > XSLT
Password Reminder
Register
Register | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Reply
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old November 11th, 2004, 07:04 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
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
Reply With Quote
  #2 (permalink)  
Old November 12th, 2004, 04:58 AM
joefawcett's Avatar
Wrox Author
Points: 9,763, Level: 42
Points: 9,763, Level: 42 Points: 9,763, Level: 42 Points: 9,763, Level: 42
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jun 2003
Location: Exeter, , United Kingdom.
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)
Reply With Quote
  #3 (permalink)  
Old November 16th, 2004, 04:18 PM
Registered User
 
Join Date: Oct 2004
Location: , , .
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.
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 05:00 AM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.