Re: [xsl] CDATA Handling

Subject: Re: [xsl] CDATA Handling
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 6 Jan 2009 11:18:05 GMT
> Basically they don't want to change the DTD and wants the data to be 
> parse by the existing DTD.

It is impossible to specify in a DTD that CDATA sections are used, just
as it is impossible to say that you have to use " rather than ' around
attribute values. CDATA sections are just part of the lexical syntax
layer: a DTD validator does not see if they are used or not, just as XSLT
does not see if they are used.

If <x><![CDATA[abcde]]></x> is DTD valid, then so is <x>abcde</x> as it
is identical input.


The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 

Current Thread