Re: [xsl] Selecting First Direct Sibling

Subject: Re: [xsl] Selecting First Direct Sibling
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 22 Aug 2007 18:10:53 +0100
> The gotcha I see is when things like count(node()) and especially 
> position() return different results when a DTD/schema is or is not in 
> play, maybe because the DTD moved or something.

the biggest place that this bites is when switching from an xslt1 to
xslt2 processor as this is an incompatibility that can generate obscure
hard to spot differences in behaviour and is _not_ protected by leaving
the stylesheet in backward compatibility mode.  XSLT2 acts like XSLT1
here, but its input has been constructed differently. (So long as you
take the spec readers view that the input to XSLt is an XDM tree
constructed by a parser, rather than the end users view that the input
is an XML document.)

David

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

Current Thread