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

Bringing HTML through

Subject: Bringing HTML through
From: "Ian Sparks" <isparks@xxxxxxxxxxxxxxx>
Date: Tue, 17 Oct 2000 16:22:26 +0100
bringing html through
I posted this one to the MSXML newsgroup some time back but so far haven't
had a response. I'm pleased I signed up to this list since there seem to be
some real experts here (thanks guys!).

Hopefully I'll be able to start contributing rather than just asking
questions soon.

.....

I have a problem with bringing XML documents through from a database.

I want to store the following in my database record :

"<i>Hello</i>"

I need to pull this data out, put it into a DOM tree and then pass it to the
XSL filter for processing. I want to get the same structure carried through
into my resulting HTML file (so "Hello" appears in italics).

Problem #1 : As soon as I load the text "<i>Hello</i>" as
the text of a node it gets transformed into &lt;i;&gt;Hello... style. Not
what I want.

Problem #2 : Lets say I put this data into a CDATA section to carry it
through, I still can't work out how to pull the contents of that section out
and have it carried through to my HTML without it getting transformed into
&lt;i;&gt;Hello...

For security reasons I might want to limit the tags that can be
carried-through in this way (maybe allowing italic, bold, HREFs etc but
disallowing script or anything potentially malicious).

All insight appreciated. I suspect xsl:copy is involved but I can't work it
out!

- Ian Sparks.



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.