RE: [xsl] How to View Entity Reference

Subject: RE: [xsl] How to View Entity Reference
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Thu, 14 Sep 2006 16:25:10 +0100
> > Is unparsed-entity-uri() the only function reliant on a DTD 
> being used 
> > in the XML?
> 
> no id() is the other one. and in xslt2 there's 
> unparsed-entity-public-id as well.

id() doesn't absolutely require a DTD, the id-ness of an attribute can also
result from a schema or from the attribute being named xml:id.

(Incidentally, on Saxon on .NET, id() doesn't work on DTD-defined ID
attributes, because the System.Xml parser doesn't report ID-ness to the
application!)

Michael Kay
http://www.saxonica.com/

Current Thread