Re: Understanding character handling

Subject: Re: Understanding character handling
From: David Carlisle <davidc@xxxxxxxxx>
Date: Fri, 8 Jan 1999 17:46:44 GMT
   The DOM does allow parsers to record the use of CDATA. So the two cases
       <FOO><![CDATA[&foo;]]></FOO>
       <FOO>&amp;foo;</FOO>
  can be distinguished in the DOM model.

Strange (but, I am sure it is true).

  So the first line could be output
  exactly as it was read in.

but I don't think this follows even then. If the two lines above are
part of an XSL stylesheet, then if you view that as an XML document and
query it with the DOM. You are saying that you can distinguish that.

But surely the actual _result_ of parsing these two expressions is the
same sequence of characters, so the stylesheet that the XSL engine gets
to work with, which is which is the result of parsing the XSL file as an
XML document, not the result of a series of DOM queries, will be the
same in the two cases, and so any XSL engine must surely be forced to
act the same way on these two template fragments.

David


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


Current Thread