Re: [xsl] Does a transform understand base \ extension types?

Subject: Re: [xsl] Does a transform understand base \ extension types?
From: Jeni Tennison <mail@xxxxxxxxxxxxxxxx>
Date: Fri, 30 Mar 2001 13:41:49 +0100
Mike Kay wrote:
> XSLT 1.0 does not make any use of information from a DTD or Schema.

Mike and David are always picking holes in my sweeping statements, so
it's time I got one of them back...

A stylesheet may make use of information from a DTD in that:

  (a) if an attribute is declared in a DTD with a default value and
      that attribute is missing in the source XML then the source node
      tree that the XSLT processor processes will contain the
      attribute with the default value (technically, this is specified
      in the XPath Recommendation)

  (b) if attributes are declared in a DTD as an ID attribute then the
      XSLT stylesheet may use the id() function to get at the element
      with a particular ID (technically, this is specified in the
      XPath Recommendation)

  (c) if an unparsed entity is declared in a DTD then the XSLT
      stylesheet may use the unparsed-entity-uri() function to get the
      URI of the entity (this *is* specified in the XSLT
      Recommendation)

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



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


Current Thread