This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: a FAQ with no subject line
- To: "'xsl-list at mulberrytech dot com'" <xsl-list at mulberrytech dot com>
- Subject: Re: a FAQ with no subject line
- From: Mike Brown <mbrown at corp dot webb dot net>
- Date: Tue, 7 Mar 2000 22:41:51 -0700
- Reply-To: xsl-list at mulberrytech dot com
> <fulltext>all html tags etc</fulltext>
> if any of the tags are not closed then my
> xml file will not be generated properly.
If you want to put markup-that-is-not-XML-markup into an XML document, your
only option is to have it be a single span of unparsed character data:
<fulltext><![CDATA[html goes here]]></fulltext>
When you do this, you will not be able to access the internal structure of
the HTML because now it is just a string of text, not a serialized
representation of a tree of information. XML and XSL only deal with a
certain kind of structured data, of which HTML is not.
Some XSL processors support the disable-output-escaping mechanism (see the
XSLT spec), which will let you put that CDATA into a text node that, when
serialized, will not have XML markup characters escaped as & < >
etc., but this is probably not what you want.
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list