Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Replacing a particular character with another

Status
Not open for further replies.

stiej

Technical User
Jan 20, 2003
142
GB
Hi,

In my xml document (which I haveno control over it's creation and format) I need to replace any apostrophes in a node or element (what's the difference) with two apostrophe's so that they're still there when output.

How do I do this in my XSL code?

Thanks.
 
An XML parser won't (or shouldn't) eliminate apostrophes in an element. It might substitute the general entity reference,
Code:
'
.

Can you give us an example of what you're doing and tell us what processor you're using?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top