[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Xalan bug?

Subject: Re: Xalan bug?
From: Mukul Gandhi <mukul_gandhi@xxxxxxxxx>
Date: Thu, 2 Dec 2004 22:29:31 -0800 (PST)
xalan mobile phone
Sorry for sending so many posts on this subject..

I seem to have finally found the real bug..

Please consider this simple example..

XML file
--------
<?xml version="1.0"?>
<Parent>
  <node>a</node>
  <node>s</node>
  <node>d</node>
  <node>f</node>
  <node>g</node>
  <node>h</node>
  <node>j</node>
  <node>k</node>
  <node>l</node>				
</Parent>

XSL file
--------
<?xml version="1.0"?> 
<xsl:stylesheet
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
 
<xsl:output method="text" /> 

<xsl:template match="/Parent">
   <xsl:for-each select="node[1] | child::node">      
  
     <xsl:if test="position() != last()">
       <xsl:text>,</xsl:text>  
     </xsl:if>  
   </xsl:for-each>
</xsl:template>

</xsl:stylesheet>

After applying the transformation, the outputs
received are :
1) With Xalan-J 2.6.0
,

2) With Saxon 8
,,,,,,,,

3) With MSXSL 4
, , , , , , , ,

It therefore seems to me, *that the test, position()
!= last() does'nt work correctly with Xalan-J 2.6,
when context is a union operator (|) *..

Regards,
Mukul


		
__________________________________ 
Do you Yahoo!? 
Take Yahoo! Mail with you! Get it on your mobile phone. 
http://mobile.yahoo.com/maildemo 

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.