[
Lists Home |
Date Index |
Thread Index
]
At 10:53 AM -0700 5/14/02, Evan Lenz wrote:
>No, this isn't right at all. Skipped entity references are simply invisible
>to the data model, i.e. lost, just like anything else that's not significant
>in the data model. This is a very important distinction. Otherwise, it would
>be impossible to use a non-validating parser with XSLT.
>
That's exactly what I'm claiming. It is impossible to use a
non-validating parser with XSLT, or, more precisely, it is impossible
to use a parser which does not read the DTD and resolve external
entity references. Section 5.2 of the XPath spec clearly states:
Entity references to both internal and external entities are
expanded. Character references are resolved.
There just isn't an option for leaving them out as you seem to want to do.
--
+-----------------------+------------------------+-------------------+
| Elliotte Rusty Harold | elharo@metalab.unc.edu | Writer/Programmer |
+-----------------------+------------------------+-------------------+
| The XML Bible, 2nd Edition (Hungry Minds, 2001) |
| http://www.cafeconleche.org/books/bible2/ |
| http://www.amazon.com/exec/obidos/ISBN=0764547607/cafeaulaitA/ |
+----------------------------------+---------------------------------+
| Read Cafe au Lait for Java News: http://www.cafeaulait.org/ |
| Read Cafe con Leche for XML News: http://www.cafeconleche.org/ |
+----------------------------------+---------------------------------+
|