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

RE: Importing HTML into my output

Subject: RE: Importing HTML into my output
From: Jarno.Elovirta@xxxxxxxxx
Date: Wed, 17 Jul 2002 10:23:41 +0300
importing html into email
Hi,

> I am using XSLT go generate HTML output. In my XML Document 
> data there is a 
> tag like <file name="foo.html" />
> 
> I want to write a xsl:template which will read the contents 
> of foo.html and 
> put it into the output which is being generated. (here 
> foo.html can also be 
> foo.wml of foo.xhtml)

<xsl:template match="file">
  <xsl:copy-of select="document(@name)" />
</xsl:template>
 
> How can I import the HTML data and then make it a part of the 
> output. The 
> content of the file foo.html should not be checked for 
> wellformed because 
> its html and not guaranteed to be well formed.

No can do with XSLT. You could output a processing instruction, e.g. <?file foo.html?> and then extend the serializer to include the HTML file.

Cheers,

Santtu

 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.