This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: a FAQ with no subject line


>    <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 &amp; &lt; &gt;
etc., but this is probably not what you want.


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]