xsl-list
[Top] [All Lists]

Re: [xsl] &lt; to < while preserving &amp;

2007-07-26 08:56:58
On 7/26/07, Kai Weber <weber(_at_)mediaworx(_dot_)com> wrote:
Hello,

<title>Me &amp; You &lt;i&gt;together&lt;/i&gt;</title>

I tried my best with character-maps to get from the above
XML the following HTML:

<h3>Me &amp; You <i>together</i></h3>

Is this possible? And how could it be done?

You can't without editing your input - the ampersand needs to be double escaped:

<title>Me &amp;amp; You &lt;i&gt;together&lt;/i&gt;</title>

to then use something like saxon:parse()

Not even d-o-e can help you here... best to sort out your input XML to
make markup that is markup and not text that looks like markup.

--
http://andrewjwelch.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>