[thelist] XML help please

Raymond Wilson Raymond.Wilson at trimble.co.nz
Wed Jun 5 19:22:01 CDT 2002


There is an article on the main EVolt web site that deals with including
HTML markup in XML files and dealing with it via XSL translations. It was
posted in the last couple of days so it should be right up near the top...

You may find it useful!

Cheers,

Raymond.


-----Original Message-----
From: cspruck at mindspring.com [mailto:cspruck at mindspring.com]
Sent: Thursday, June 06, 2002 12:02 PM
To: thelist at lists.evolt.org
Subject: Re: [thelist] XML help please



On Thu, 06 Jun 2002 10:53:55 +1200 Duncan O'Neill <dbaxo at ihug.co.nz> wrote:
**************************************************
Hi all,

I have a problem with an XML dataset which I've
converted from an Access database using ASP.

The problem is that one of the fields (now an XML element) contains HTML
markup. I've tried both converting the field into XML both 'raw' (i.e.
within a normal element ) and as CDATA within that element. Either way, when
I try to transform the XML on the server using XSL & ASP, it comes out with
markup as literals ( i.e. <p> Blah Blah</p><p>yadda </p> etc).

Short of removing the HTML markup from the 26
original tables, or removing it by hand from the
XML, can someone please suggest a way to get
the HTML markup to function as such? I know I
can do it using ASP's response.write, but it
seems there should be an easier solution.
**************************************************

Duncan,

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
--
For unsubscribe and other options, including
the Tip Harvester and archive of thelist go to:
http://lists.evolt.org Workers of the Web, evolt !



More information about the thelist mailing list