http://nagoya.apache.org/bugzilla/show_bug.cgi?id=1506
*** shadow/1506 Tue Jul 24 10:32:25 2001
--- shadow/1506.tmp.21865 Tue Jul 24 11:36:34 2001
***************
*** 52,55 ****
<out><p xmlns:ns0="foo2.com" ns0:test="true"/></out>
------- Additional Comments From [EMAIL PROTECTED] 2001-07-24 10:32 -------
! Conformance test lre03 demonstrates the same bug.
--- 52,132 ----
<out><p xmlns:ns0="foo2.com" ns0:test="true"/></out>
------- Additional Comments From [EMAIL PROTECTED] 2001-07-24 10:32 -------
! Conformance test lre03 demonstrates the same bug.
!
! ------- Additional Comments From [EMAIL PROTECTED] 2001-07-24 11:36 -------
! Conformance test lre05 also exhibits the same problem and an additional problem
! related to excluding results prefixes. Like the lre03 and namespace18 tests, an
! excluded result prefix is not excluded, where it should be. However, the
! converse is also exhibited by test lre05: the namespace attribute is being
! incorrecly excluded from the sub-elements of the LRE which has the
! exclude-result-prefix attribute.
!
! XSL for test lre05
! ==================
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
! xmlns:ped="http://tester.com">
!
! <xsl:import href="implre05.xsl"/>
! <xsl:include href="inclre05.xsl"/>
!
! <!-- FileName: lre05 -->
! <!-- Document: http://www.w3.org/TR/xslt -->
! <!-- DocVersion: 19991116 -->
! <!-- Section: 7.1.1 Literal Result Elements-->
! <!-- Creator: Paul Dick -->
! <!-- Purpose: Show that exclude-result-prefixes is scoped to just it's LRE.
! -->
!
! <!-- The designation of a namespace as an excluded namespace is
! effective within the subtree of the stylesheet rooted at the element
! bearing the exclude-result-prefixes or xsl:exclude-result-prefixes
! attribute.
! A subtree rooted at an xsl:stylesheet element does not include any
! stylesheets imported or included by children of that xsl:stylesheet
! element. -->
!
! <!-- The ped namespace is excluded from main and foo, but not from the
! sub-elements that
! got placed in main by other templates. In fact, it has to be re-declared for
! each of
! those sub-elements. -->
!
! <xsl:template match="docs">
! <main xsl:exclude-result-prefixes="ped">
! <foo/>
! <xsl:apply-templates/>
! </main>
! </xsl:template>
!
! <xsl:template match="doc1">
! <sub-element-in-main />
! </xsl:template>
!
! </xsl:stylesheet>
!
! XML for lre05
! =============
! <?xml version="1.0"?>
! <docs>
! <doc1/>
! <doc2/>
! <doc3/>
! </docs>
!
! Included Stylesheet (inclre05.xsl)
! ==================================
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
! xmlns:ped="http://tester.com">
!
! <xsl:template match="doc3">
! <sub-element-in-include />
! </xsl:template>
!
! Imported Stylesheet (implre05.xsl)
! ==================================
! <?xml version="1.0"?>
! <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"
! xmlns:ped="http://tester.com">