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

Re: Embedding HTML Doc into XSL or XML

Subject: Re: Embedding HTML Doc into XSL or XML
From: Mike Brown <mike@xxxxxxxx>
Date: Mon, 14 Aug 2000 11:59:54 -0600 (MDT)
making an html doc
I answered this question on the list for you on August 11. Here is the
same answer, again.

Sunitha wrote:
> Hi all,
> Could anyone help me out with my problem.
> I want to embed an HMTL doucment into and XSL stylesheet.
> Is it possible?

FAQ. 

The correct/elegant way is to make the HTML well-formed XML by following
the guidelines of the XHTML 1.0 Recommendation.

http://www.w3.org/TR/xhtml1/

Then you can copy the whole thing with xsl:copy-of.


If you must use poorly-formed data and you do not need to access the
internal structure of the HTML, and if you are using an XSLT 1.0 processor
(*not* IE5's default processor), you have the option of making the HTML be
a single block of character data:

<![CDATA[<BODY><P><BR>very bad HTML</LI></HEAD>]]>

which you can then put into a text node with an instruction to the XSLT
processor to flag that text node as not having its content subjected to
the escaping that might otherwise occur upon output, depending on the
output method chosen:

<xsl:text disable-output-escaping="yes"><![CDATA[bad html goes
here]]></xsl:text>

or, if the data is in the source tree:

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

   - Mike
____________________________________________________________________
Mike J. Brown, software engineer at         My XML/XSL resources:
webb.net in Denver, Colorado, USA           http://www.skew.org/xml/


 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.