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

RE: Fwd: Parsing Entities

Subject: RE: Fwd: Parsing Entities
From: "Kaila Kaarle" <Kaarle.Kaila@xxxxxxx>
Date: Tue, 10 Jan 2006 14:15:14 +0200
kaila jan
Hi,

I believe something like this should do it!

<xsl:value-of select="letter_text" disable-output-escaping="yes"/>

Regards
Kaarle

-----Original Message-----
From: Gary Stewart [mailto:the.stewarg@xxxxxxxxx]
Sent: 10. tammikuuta 2006 14:11
To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
Subject:  Fwd: Parsing Entities

Hi there,

I have an XML document that has some XML mark-up that is stored as
entities so I have something like:

<letter_text>&lt;p&gt;Some random letter text :(.&lt;/p&gt;&lt;p&gt;Will
this work?&lt;/p&gt;</letter_text>

Now the encoded data should be valid XHTML fragments (though if I was
parsing it as a root node I would expect there would be multiple roots
causing issues) which I would like to use as XHTML in my result
document.

I've looked at saxon:parse
(http://www.saxonica.com/documentation/extensions/functions/parse.html)
though that seems specific to CDATA and expects a single root node XML
document.

Any idea on if this can be done. If not; as the document generally isn't
that complex would it maybe be worth trying to text process it and
create new nodes in the tree; though I'm aware that XSLT isn't really
very good for text processing.

Thanks!

Gary

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.