[XSL-LIST Mailing List Archive Home]
[By Thread]
[By Date]
RE: [xsl] editing HTML inside
RE: [xsl] editing HTML inside
Subject: RE: [xsl] editing HTML inside <![CDATA[
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Wed, 19 May 2004 15:34:39 +0100
> I have the following html code inside a xml file
>
>
> <SummaryHTML>
> <![CDATA[<html>
> <html>
> <body>
> .....
> .....
> </body>
> </html>
> ]]>
>
>
> but using this I can only get the raw html code into
> another html file but not able to access any nodes
> inside the html content.
>
There are no nodes inside the CDATA section, there is only text. CDATA tells
the parser to treat the contents as text, not as markup.
Your choices are:
(a) avoid wrapping the HTML in CDATA in the first place (in which case you
will have to make sure it is well-formed XML, by putting it through the tidy
utility)
(b) extract the HTML from the CDATA as text, and parse it to turn it into a
tree of nodes. Saxon offers an extension saxon:parse to do this (but this
again relies on it being well-formed XML).
MIchael Kay
Current Thread
- [xsl] editing HTML inside <![CDATA[
- Angeshwar Deepak - Wed, 19 May 2004 06:35:49 -0700 (PDT)
- David Carlisle - Wed, 19 May 2004 14:52:27 +0100
- Michael Kay - Wed, 19 May 2004 15:34:39 +0100 <=
- <Possible follow-ups>
- Pieter Reint Siegers Kort - Wed, 19 May 2004 10:46:39 -0500
- Daniel Joshua - Thu, 20 May 2004 10:38:38 +0800
<- Previous Index Next ->
Re: [xsl] editing HTML inside <![CD, David Carlisle
Thread
RE: [xsl] editing HTML inside <![CD, Pieter Reint Siegers
Re: [xsl] Is it possible to get "&n, David Carlisle
Date
RE: [xsl] Help: Reasons to use XML, Rod Humphris - FLPTN
Month
Keywords
Subject: RE: [xsl] editing HTML inside <![CDATA[ From: "Michael Kay" <mhk@xxxxxxxxx> Date: Wed, 19 May 2004 15:34:39 +0100 |
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] editing HTML inside <![CD, David Carlisle | Thread | RE: [xsl] editing HTML inside <![CD, Pieter Reint Siegers |
Re: [xsl] Is it possible to get "&n, David Carlisle | Date | RE: [xsl] Help: Reasons to use XML, Rod Humphris - FLPTN |
Month |
Keywords