[ 
https://issues.apache.org/jira/browse/XALANJ-2524?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12924144#action_12924144
 ] 

Julian Reschke commented on XALANJ-2524:
----------------------------------------

The reason I brought this up was because a XSLT is misbehaving, see mail in 
<http://mail-archives.apache.org/mod_mbox/xml-xalan-j-users/201010.mbox/%3c4cbc60b0.2000...@gmx.de%3e>.

That exslt:object-type reports the wrong type was a related observation; it's 
unlikely that this fix is sufficient.

Could you please try your fix with the example I posted on the users mailing 
list (see above)?

> applying exslt:node-set to a node set yields something that is not a node set
> -----------------------------------------------------------------------------
>
>                 Key: XALANJ-2524
>                 URL: https://issues.apache.org/jira/browse/XALANJ-2524
>             Project: XalanJ2
>          Issue Type: Bug
>      Security Level: No security risk; visible to anyone(Ordinary problems in 
> Xalan projects.  Anybody can view the issue.) 
>          Components: Xalan-extensions
>    Affects Versions: 2.7.1
>            Reporter: Julian Reschke
>            Priority: Minor
>         Attachments: patch_xalanj-2524.txt
>
>
> Applying the exslt:node-set extension to something that already is a node set 
> yields a non-node set result.
> This is a bug according to 
> <http://exslt.org/exsl/functions/node-set/exsl.node-set.html>:
> "If the argument is a node-set already, it is simply returned as is."
> Test case:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet version="1.0"
>                 xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
>                 xmlns:exslt="http://exslt.org/common";
> >
> <xsl:output method="text"/>
> <xsl:template match="/">
>   
>   <xsl:variable name="t">
>     <root>
>       <x>1</x>
>       <x>2</x>
>       <x>3</x>
>     </root>
>   </xsl:variable>
>   <xsl:variable name="tns1" select="exslt:node-set($t)/root/x"/>
>   <xsl:variable name="tns2" select="exslt:node-set($tns1)"/>
>   
>   Type of t: <xsl:value-of select="exslt:object-type($t)"/>
>   Type of tns1: <xsl:value-of select="exslt:object-type($tns1)"/>
>   Name of tns2: <xsl:value-of select="exslt:object-type($tns2)"/>
>   
> </xsl:template>
> </xsl:stylesheet>
> This yields the expected result in xsltproc, Saxon 6.* and XSLTC, but not in 
> Xalan-J.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


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

Reply via email to