This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: keys and idrefs - XSLT2 request?




> I was hoping that the processor would see 2.0, know it was a 1.0
> processor, and stop, right there, or at least give a warning.

No, it would go on, and process things via fallback, this behaviour is
specified in the xslt 1.0 spec. But as Jeni notes you can only fallback
or detect new xsl elements or new xpath functions. You can't do anything
if the same syntax means something different.



XSLT 1.0 says:

  Thus, any XSLT 1.0 processor must be able to process the following
  stylesheet without error, although the stylesheet includes elements from
  the XSLT namespace that are not defined in this specification:

  <xsl:stylesheet version="1.1"


so just putting 1.1 or 2.0 in the version number will _not_ produce any
warning if the stylesheet is run on a 1.0 processor.


David

_____________________________________________________________________
This message has been checked for all known viruses by Star Internet
delivered through the MessageLabs Virus Scanning Service. For further
information visit http://www.star.net.uk/stats.asp or alternatively call
Star Internet for details on the Virus Scanning Service.

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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]