[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Re: Replace function with <> characters?

Subject: Re: Re: Replace function with <> characters?
From: Rune Stilling <subs@xxxxxxxxxx>
Date: Tue, 6 Jan 2009 10:15:51 +0100
Re: Re:  Replace function with <> characters?
If your input is

<x> 3 < 4 <x>


then the input is not well formed, ie not XML and so can not be processed by any XML applictaion, XSLT in particular.

Thanks - My input is actually something like:


<x> <z> 3 </z> </x>

So it should be valid XML, but I need to transform the <>-characters of the z-tag (only the z-tag) to "& l t ;" and "& g t ;" so what the browser sees in the end is:

<x> & l t ;z & g t ; 3 & l t ; / z & g t ; </x>

The reason I need to do this is that z-tag is actually to be passed as a string to javascript function which will generate html for a tooltip where the z-tag then again should be showing with <>.

Do I make myself clear :)

\Rune

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.