xsl-list
[Top] [All Lists]

Re: [xsl] Ann: Transforming J S O N in pure X S L T

2007-05-09 14:57:01
Michael Kay wrote:

  Hi

As a result of investigating Jeni's Levenshtein distance
stylesheet last weekend, the next Saxon version will push
compile-time type checking down into the branches of a
conditional, which will give you a compile-time error for
the above construct. At the moment, you'll only get an
error if the else branch is actually taken at run-time.

  With 8.9J and 8.9.0.2J, the error is encountered in SA and
not B.  And in SA the error is encountered at runtime (at
least the XSLT stack trace and the error message look like
it is).

  I don't know if this deserves to be looked further at.

  BTW, is it legal to have a compile error for the
following:

    <xsl:variable name="..." as="item()" select="
        if ( $... ) then ... else ()"/>

?  Note I'm just curious, I love having early reporting on
such issues.

  Regards,

--drkm


















      
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--