Hi all,

 

I’m using Saxon 9.1.0.5J on the command line and trying to debug and profile some code from within out application and I’ve found this:

 

<xsl:variable name="autoNumberKey" select="string(@lhs:autoNumberKey)"/>

<xsl:number count="*[@lhs:autoNumberKey = $autoNumberKey]" from="document" level="any" format="1”/>

 

Seems to produce a different result to:

 

<xsl:variable name="autoNumberKey" select="string(@lhs:autoNumberKey)"/>

<xsl:message select="$autoNumberKey"/>

<xsl:number count="*[@lhs:autoNumberKey = $autoNumberKey]" from="document" level="any" format="1”/>

 

Should this really be happening??

 

How can I code around this to count all elements with the same @lhs:autoNumberKey value as the current node?

 

Regards

 

Mark




Mark Gabriel
Development

-------------------------------
mgabriel@limehousesoftware.co.uk
Limehouse Software Ltd

DDI:  01628 640 452
Main: 01628 640 401        
Fax:  01628 640 461         

Limehouse Software Limited
St Cloud Gate
St Cloud Way
Cookham Road
Maidenhead, Berks
SL6 8XD

www.limehousesoftware.co.uk - Unifying Information

Limehouse Software Limited - An Objective
 Company
         
The information contained in this e-mail or in any attachments is confidential and is intended solely for the named addressee only. Access to this e-mail by anyone else is unauthorised. If you are not the intended recipient, please notify Limehouse Software Ltd immediately by returning this e-mail to sender or calling 01628 640 401 and do not read, use or disseminate the information. Opinions expressed in this e-mail are those of the sender and not necessarily the company. Although an active anti-virus policy is operated, the company accepts no liability for any damage caused by any virus transmitted by this e-mail, including any attachments.