[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] pass malformed HTML through the parser?


Subject: Re: [xsl] pass malformed HTML through the parser?
From: Jeff Kenton <jkenton@xxxxxxxxxxxxx>
Date: Wed, 13 Aug 2003 10:12:49 -0400

Jaques, Yves (FIDI) wrote:
Our site is XML/XSL, however we are about to receive a thousand pages of old
static html that we will never have the time to turn into XHTML. I would
like to be able to spit it through the parser without parsing it so that I
can wrap our site template around the static html as I do for our other
content. Is this possible?

Two possibilities:


1. Since this sounds like a one time problem, do it with some other language.

2. If you have an XSLT 2.0 processor (Saxon) you might try the unparsed-text() function, which will read your page into a text string without parsing it. Then you can wrap it and write it out.

--

--------------------------
Jeff Kenton
DataPower Technology, Inc.



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



Current Thread
Keywords