You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by bu...@apache.org on 2001/09/06 20:46:16 UTC
[DO NOT REPLY: Bug 3468] New:
xsltc fails conf tests position86,87,89 select="chapter//footnote[1]"
PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT
ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW
AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE
DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL
BE LOST SOMEWHERE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3468
*** shadow/3468 Thu Sep 6 11:46:15 2001
--- shadow/3468.tmp.23372 Thu Sep 6 11:46:15 2001
***************
*** 0 ****
--- 1,82 ----
+ +============================================================================+
+ | xsltc fails conf tests position86,87,89 select="chapter//footnote[1]" |
+ +----------------------------------------------------------------------------+
+ | Bug #: 3468 Product: XalanJ2 |
+ | Status: NEW Version: 2.0.0 |
+ | Resolution: Platform: Sun |
+ | Severity: Normal OS/Version: Solaris |
+ | Priority: Other Component: org.apache.xalan.xsltc |
+ +----------------------------------------------------------------------------+
+ | Assigned To: xalan-dev@xml.apache.org |
+ | Reported By: tamiro@east.sun.com |
+ | CC list: Cc: |
+ +----------------------------------------------------------------------------+
+ | URL: |
+ +============================================================================+
+ | DESCRIPTION |
+ This may be a duplicate of other bug(s), but I'm filing it just in case it
+ reflects a separate problem. The following session provides the details
+ for position86. position87 is the same except it has chapter//footnote[2] and
+ position89 has select="(child::chapter/descendant-or-self::node())/footnote[2]"
+
+
+ Running xalan on position86
+ <?xml version="1.0" encoding="utf-8"?>
+ <out><footnote>hello</footnote>
+ <footnote>goodbye</footnote>
+ <footnote>aloha</footnote>
+ </out>
+
+
+ Running XSLTC with Xerces Parser on position86
+ <?xml version="1.0" encoding="utf-8" ?>
+ <out><footnote>hello</footnote>
+ </out>
+
+ glrr 1498 =>cat position86.xsl
+ <?xml version="1.0"?>
+ <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+
+ <!-- FileName: position86 -->
+ <!-- Document: http://www.w3.org/TR/xpath -->
+ <!-- DocVersion: 19991116 -->
+ <!-- Section: 3.3 -->
+ <!-- Creator: Mukund Raghavachari -->
+ <!-- Purpose: "The Predicate filters the node-set with respect to the child
+ axis"
+ means that the descendant(-or-self) axes must be internally segregated so
+ that
+ the position is among one group of children. -->
+
+ <xsl:output method="xml" encoding="utf-8"/>
+
+ <xsl:template match="/">
+ <out>
+ <xsl:for-each select="chapter//footnote[1]">
+ <xsl:copy>
+ <xsl:value-of select="."/>
+ </xsl:copy>
+ <xsl:text>
+ </xsl:text>
+ </xsl:for-each>
+ </out>
+ </xsl:template>
+
+ </xsl:stylesheet>
+
+
+ glrr 1499 =>^xsl^xml
+ cat position86.xml
+ <?xml version="1.0"?>
+ <chapter>
+ <section>
+ <footnote>hello</footnote>
+ </section>
+ <section>
+ <footnote>goodbye</footnote>
+ <footnote>sayonara</footnote>
+ </section>
+ <section>
+ <footnote>aloha</footnote>
+ </section>
+ </chapter>