[
https://issues.apache.org/jira/browse/XALANJ-2457?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12630332#action_12630332
]
David Bertoni commented on XALANJ-2457:
---------------------------------------
Yes, if you provide a test case in the bug report, it doesn't need to be
licensed. However, to incorporate this into regression or conformance tests,
we need a license, since it will become part of the project.
Thanks for help!
> xsl:number fails when count item is doubly nested and end tag is on same line
> -----------------------------------------------------------------------------
>
> Key: XALANJ-2457
> URL: https://issues.apache.org/jira/browse/XALANJ-2457
> 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
> Affects Versions: 2.7.1
> Environment: WinXP, java 1.6.0_07 testing with xalanj in custom java
> as well as in Oxygen 9 XSLT Debugger
> Reporter: Jeffrey Barrus
> Attachments: test.xml, test.xsl
>
>
> test case:
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0">
> <xsl:template match="top">
> <xsl:apply-templates/>
> </xsl:template>
> <xsl:template match="middle">
> <xsl:number format="1" from="top" level="any" count="bottom"/>
> </xsl:template>
> </xsl:stylesheet>
> <?xml version="1.0" encoding="UTF-8"?>
> <top>
> <middle>
> <test><bottom/><bottom/></test>
> </middle>
> <middle/>
> </top>
> The output is correctly
> 0
> 2
> However, if the xml is changed so that the first /middle tag is at the end of
> the line rather than on a new line of it's own
> <top>
> <middle>
> <test><bottom/><bottom/></test></middle>
> <middle/>
> </top>
> The output becomes
> 0
> 0
> It appears that it does not count the two bottom tags if the /middle tag is
> on the end of the line. I tried this with multiple other sets of markup and
> the results are the same.
--
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]