[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: including an XSLT 1.0 stylesheet in a XSLT 2.0 one
On 06/01/2012 12:03, TW wrote:
Thanks Michael and David. Do I understand this correctly: all XPath expressions inside an element with version="1.0" are interpreted as XPath 1.0, even if the enclosing elements have (or inherit) version="2.0". they are evaluated as xpath2 in backwards compatibility mode (which is almost, but not quite the same as xpath 1) similarly all xsl instructions (notably xsl:value-of) are evaluated in xsl backward compatibilty mode. (The other way round, using the version attribute on an element inside a 1.0 stylesheet doesn't seem to be valid.) xsl only allowed version on xsl:stylesheet so you can't nest at arbitrary points, but the original example of having different version= on different stylesheet modules being imported or included applies to xslt 1 as well.
yes David
This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|