Subject: Re: [xsl] error in xsl:key From: David Carlisle <davidc@xxxxxxxxx> Date: Fri, 19 Sep 2008 17:38:10 +0100 |
> E.g. in Saxon 9.1 this results in error when I try to access a key() > function, > with valid $key-value. when making the key the use attribute (conceptually) has to be evaluated on every node that matches the match attribute, so you know which nodes are indexed by which key values. If evaluating teh use attribute can generate an error then you shoud lexpect an error when teh key is made, which in practice is probably the first time you use the key() function. the arggument of the function are not really relevant as once the system decides it needs to build the key it needs to index the whole document. Since it's an extension function you should be able to arrange that it never errors and instead always returns a value, even if it's a special value such as "**error**" 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] error in xsl:key, Vladimir Nesterovsky | Thread | [xsl] Re: error in xsl:key, Vladimir Nesterovsky |
[xsl] error in xsl:key, Vladimir Nesterovsky | Date | [xsl] Re: error in xsl:key, Vladimir Nesterovsky |
Month |