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 2008/07/31 17:58:31 UTC

[jira] Resolved: (XALANC-679) Possible wrong evaluation of abbreviated XPath in template match

     [ https://issues.apache.org/jira/browse/XALANC-679?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

David Bertoni resolved XALANC-679.
----------------------------------

       Resolution: Fixed
    Fix Version/s: CurrentCVS

Patch committed.

> Possible wrong evaluation of abbreviated XPath in template match
> ----------------------------------------------------------------
>
>                 Key: XALANC-679
>                 URL: https://issues.apache.org/jira/browse/XALANC-679
>             Project: XalanC
>          Issue Type: Bug
>    Affects Versions: 1.10
>            Reporter: Holger Floerke
>            Assignee: David Bertoni
>             Fix For: CurrentCVS
>
>         Attachments: XALANC-679.patch
>
>
> Using the Stylesheet
> """
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
>   <xsl:template match="artikel/*[starts-with(name(),'artikel-')]//titel" >
>     '<xsl:value-of select="."/>'<xsl:text>
> </xsl:text>
>   </xsl:template>
>   <xsl:template match="text()"/>
> </xsl:stylesheet>
> """
> to transform the xml document
> """
> <?xml version="1.0" encoding="UTF-8"?>
> <ROOT>
>   <artikel>
>      <artikel-xxx>
>         <titel>good</titel>
>         <div>
>           <titel>good2</titel>
>         </div>
>      </artikel-xxx>
>   </artikel>
> </ROOT>
> """
> results in 
> """
> <?xml version="1.0" encoding="UTF-8"?>
>     'good'
> """
> should be 
> """
> <?xml version="1.0" encoding="UTF-8"?>
>     'good'
>     'good2'
> """
> The old instant saxon produces the expected output. 
> Removing the Step "*[starts-with(name(),'artikel-')]" results in the expected output.

-- 
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-unsubscribe@xml.apache.org
For additional commands, e-mail: xalan-dev-help@xml.apache.org