[thelist] XML help please

Duncan O'Neill dbaxo at ihug.co.nz
Wed Jun 5 19:40:11 CDT 2002


cspruck at mindspring.com wrote:

>
> This may be more than you want to deal with, but you could add the HTML tags to your schema and validate the HTML tags as XML, then do the transform. I'm doing that on a project now. This, of course, is only good if you don't have to do tremendous amounts of clean-up in the HTML (also doing on a project now, hehe). Can you post a more detailed description or sample of how you're doing the transform? I couldn't tell if you're doing it with the raw data and just ASP somehow or if you're using an XSLT file in between.
>
> HTH!
>
> Chris

Chris,

thanks for your reply.

I'm using an ASP file to convert the data in
the Access database to XML.

And then to display it in the webpage, I'm
using another ASP file, which references
both the (now converted) XML file and an
XSLT file.

The relevant bits of the XSLT file (for dealing
with the HTML markup within the XML) are;

<xsl:for-each select="week/person">
  <h3><xsl:value-of select="@nom" /></h3>
  <img align="left" hspace="10"><xsl:attribute
name="src">http://homepages.ihug.co.nz/~dbaxo/<xsl:value-of
select="img_src" /></xsl:attribute></img>
  <code><xsl:value-of select="quote" /></code>
  <p><xsl:value-of select="bio/cdata()"
disable-output-escaping="yes"/><a href="#top">TOP</a></p>

There are too many HTML tags to go in and strip
them out by hand, so there has to be a better
solution.

thanks in advance for any help you can offer.

Duncan O'Neill

=====================================================




More information about the thelist mailing list