" Cal Who" <> wrote in message
news:%...
> I'm sorry I'm taking too much of your time and not getting to the problem.
It's no problem at all, I just want to make sure I'm giving you relevant
information.
> If I click on the following XML file the browser will extract the CDATA
> using the XSLT file and display text. But you can see that the text is
> really HTML markup (including things like <p>)
> I need it (or something) to take that markup and format it as it would
> have had the markup come from a host.
> I need to see Sunday in bold type.
Ok, so while this works, it will ONLY work as long as the HTML that is
embedded into the CDATA section is "valid". If there are any HTML errors
(which) browsers don't alert you to, the browser *may* display something
that your eyeballs say is ok, but is actually incorrect HTML.
This is the biggest issue for people to understand about HTML, as I've said,
browsers don't "validate" what they are displaying, they simply "interpret"
what they've been given and different browsers are free to interpret the
same HTML differently.
While this solution *may* seem to work for you, the minute the CDATA has
improperly written HTML, this solution can fall apart.
This is exactly why validation is really the only bullet-proof way of
knowing that what your eyeballs are seeing is, in fact, what everyone's
eyeballs will see.
-Scott
>
> Thanks
>
>
> THE XML FILE
>
> <?xml version="1.0" encoding="utf-16"?>
> <?xml-stylesheet type="text/xsl" href="sample1.xslt"?>
>
> <DefaultDataItems>
>
> <DataItem>
> <Header>
> <![CDATA[
> <h4>
> COMING EVENTS
> </h4>
> ]]>
> </Header>
> <Contents>
> <![CDATA[
> <p>The Festival will be held at p.m. <b>Sunday</b>
> </p>
> <p>
> The event will include a variety of homemade food
>
> </p>
>
> ]]>
>
> </Contents>
> </DefaultDataItems>
>
> THE XSLT FILE
> <?xml version="1.0" encoding="ISO-8859-1" ?>
> <xsl:stylesheet version="1.0"
> xmlns
sl="http://www.w3.org/1999/XSL/Transform">
> <xsl:template match="/">
> <html>
> <body>
> <xsl:for-each select="DefaultDataItems/DataItem">
> <b>Header :</b><br /><xsl:value-of select="Header" /><br/>
> <b>Contents:</b><br /><xsl:value-of select="Contents" /><br/>
> </xsl:for-each>
> </body>
> </html>
> </xsl:template>
> </xsl:stylesheet>
>
>
>