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

Re: how can I, include a HTML file into an xsp.xsl fil

Subject: Re: how can I, include a HTML file into an xsp.xsl file
From: "Thomas B. Passin" <tpassin@xxxxxxxxxxxx>
Date: Mon, 8 Oct 2001 10:48:29 -0400
include in html
[oscar]

> how can I, include a HTML file into an xsp.xsl file??
>
> I want include a part of one external HTML code into the xsl file.
>

If you mean this literally, you can't.  That's because HTML is not
well-formed XML and so cannot actually be included.

There are three approaches you can do:

1) Make sure your HTML file is well-formed.  Then you can include it using
xsl:copy-of.

2) Use a non-XML processor to wrap your HTML file in a CDATA section and a
root element, then use document() to get it and stuff it into your document.
This turns it into plaint text, but it might be waht you want to do if your
goal is to display HTML source code.

3) Use a reference mechanism, like NDATA entities or processor instructions,
and just point to the HTML file.  Then your processor has to know what to do
with it, which is outside the ken of xslt.

Cheers,
Tom P


 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.