You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by "David Bertoni (JIRA)" <xa...@xml.apache.org> on 2005/04/11 04:28:18 UTC

[jira] Resolved: (XALANC-468) EXSLT function set:has-same-node() fails with namespace nodes

     [ http://issues.apache.org/jira/browse/XALANC-468?page=history ]
     
David Bertoni resolved XALANC-468:
----------------------------------

    Resolution: Won't Fix

This is a known limitation/divergence in Xalan-C's implementatin of the XPath data model.

> EXSLT function set:has-same-node() fails with namespace nodes
> -------------------------------------------------------------
>
>          Key: XALANC-468
>          URL: http://issues.apache.org/jira/browse/XALANC-468
>      Project: XalanC
>         Type: Bug
>   Components: XalanC
>     Versions: CurrentCVS
>     Reporter: June Ng
>     Priority: Minor

>
> Ran sample test case provided on EXSLT.org website for set:has-same-node() and 
> test has-same-node() between two disjoint sets of namespace nodes failed.
> The Xalan-J processor has the same bug and will open a separate bug against 
> their processor to have this fixed.
> XML input:
> <?xml version="1.0"?> 
> <doc>
> <city name="Paris" country="France"/>
> <city name="Madrid" country="Spain"/>
> <city name="Vienna" country="Austria"/>
> <city name="Barcelona" country="Spain"/>
> <city name="Salzburg" country="Austria"/>
> <city name="Bonn" country="Germany"/>
> <city name="Lyon" country="France"/>
> <city name="Hannover" country="Germany"/>
> <city name="Calais" country="France"/>
> <city name="Berlin" country="Germany"/>
> </doc>
> XSL Stylesheet:
> <?xml version="1.0"?> 
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
> xmlns:set="http://exslt.org/sets" >
> <!-- Test set:has-same-node -->
> <xsl:variable name="a1" select="//city[@name='Vienna' or @name='Salzburg']"/>
> <xsl:variable name="a2" select="//city[@country='Austria']"/>
> <xsl:template match="/">
>   <out>
>     Test has-same-node() between two disjoint sets of namespace nodes:
>     <xsl:if test="not(set:has-same-node((//city[1])/namespace::*,(//city[2])/namespace::*))">OK</xsl:if>;        
>   </out>
> </xsl:template>
>  
> </xsl:stylesheet>
> Expected Output:
> <?xml version="1.0" encoding="utf-8"?><out xmlns:set="http://exslt.org/sets">
>     Test has-same-node() between two disjoint sets of namespace nodes:
>     OK;        
>   </out>
> Actual Output:
> <?xml version="1.0" encoding="utf-8"?><out xmlns:set="http://exslt.org/sets">
>     Test has-same-node() between two disjoint sets of namespace nodes:
>     ;        
>   </out>

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
If you want more information on JIRA, or have a bug to report see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: xalan-dev-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org