Subject: RE: Extraction of HTML code from XML - problem
From: "Michael Kay" <mhk@xxxxxxxxx>
Date: Mon, 17 May 2004 09:23:47 +0100
|
This is a legitimate use case for disable-output-escaping:
<xsl:value-of select="SummaryHTML" disable-output-escaping="yes"/>
But all the usual caveats about d-o-e apply: it is not supported by all
processors in all environments.
Michael Kay
> -----Original Message-----
> From: Angeshwar Deepak [mailto:angeshwar@xxxxxxxxx]
> Sent: 17 May 2004 07:34
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Extraction of HTML code from XML - problem
>
> Hi,
>
> I have a xml file which has some html embedded inside.
> The file is like this:
>
> <?xml version="1.0" encoding="UTF-8"?>
> <?xml-stylesheet type="text/xsl" href="bcel-fb3.xsl"?>
> <BugCollection>
>
> <BugInstance type="URF_UNREAD_FIELD" priority="2">
> ..........
> ..........
> </BugInstance>
>
> <BugInstance type="URF_UNREAD_FIELD" priority="2">
> ..........
> ..........
> </BugInstance>
>
> <SummaryHTML><![CDATA[<html>
> <body>
> <h1>
>
> <center>Findbugs Summary Report</center>
> </h1>
>
> ..........
> ..........
> </body>
> </html>
>
> ]]></SummaryHTML>
> </BugCollection>
>
>
> I want to extract the block of HTML code and make a
> seperate HTML file and create some links of my own
> inside the new HTML links.
>
> But I do not want the format of the HTML file to be
> changed i.e. the HTML content should be exactly the
> same as its in xml(like a cut paste) but with user
> defined links to specific words or strings
> in the HTML file. I have these string values in
> another XSL file which I should compare with the newly
> generated HTML file and then generate links.
>
> How can this be done.
>
> Is there a easy method like to extract continously
> every string in a for loop from <html>tag to the
> end</html> tag and simultaeneously check for the
> occurence of the required string to which I have to
> create a href link?
>
> bye,
> with regards,
> Deepak.
>
>
>
>
>
>
> __________________________________
> Do you Yahoo!?
> SBC Yahoo! - Internet access at a great low price.
> http://promo.yahoo.com/sbc/
|