Hello,
I want to transform html tags with in the xml file when it use the asp:xml
tag, how would I do this?
Here is the example of the xslt file:
<?xml version="1.0" ?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0" >
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="story">
<table width="75%" align="center">
<tr>
<td><xsl:value-of select="header"></xsl:value-of></td>
</tr>
<tr>
<td><xsl:value-of select="body"></xsl:value-of></td>
</tr>
</table>
</xsl:template>
</xsl:stylesheet>
Here is the example of the xml file:
<?xml version="1.0" encoding="utf-8" ?>
<story>
<header>Quake Hits India; Tsunami Warning Posted</header>
<body><P>A major earthquake of at least 7.0 magnitude hit India's
southern Nicobar
Islands on Sunday, prompting Thailand to issue a tsunami warning for the
region
devastated by December's earthquake and tsunami.</P>
<P>There were no immediate reports of casualties or damages. No
tsunami has been
reported. The islands are in the Indian Ocean between India and
Thailand.</P>
<P>The National Earthquake Information Centerin Golden, Colo.,
reported an
earthquake of 7.0 magnitude hit near the Nicobar Islands. The quake was
centered
about 80 miles west of Misha, Nicobar Island.</P>
<P>The earthquake was of magnitude 7.2, struck at 9:12 p.m. and was
centered in
Nicobar, said I. B. A. Rao, a duty officerin New Delhi's Meteorology
Department.</P>
<P>The quake also jolted the southern Indian state of
Madras.</P>
<P>"There is nothing to worry about," India'sScience and Technology
Minister
Kapil Sibal said.</P>
<P>The region was the worst hit in India by the Dec. 26 tsunami that
killed
about 180,000 people in 11 countries.</P>
<P>Thailand's warning was for the Indian Ocean.</P>
<P>"There can be a local tsunami, but no suchactivity has been
noticed in the
region," said S. K. Bhatnagar, deputy director-general of India's Meterology
Department in New Delhi.</P>
<P>Samir Acharya, head of a nongovernmental organization in Andaman
and Nicobar
Islands, said: "Everything is fine. I haven't heard of any
damage."</P>
<P>"My driver ran up to my house and said some people had come out on
the
roads," said Acharya, who works with the Society for Andaman and Nicobar
Ecology.</P></body>
</story>
TIA
Aaron