http://nagoya.apache.org/bugzilla/show_bug.cgi?id=2097 *** shadow/2097 Sun Jun 10 01:19:49 2001 --- shadow/2097.tmp.23434 Sun Jun 10 01:19:49 2001 *************** *** 0 **** --- 1,27 ---- + +============================================================================+ + | Embedded XSL not processed if xmlns:xsl declared at root | + +----------------------------------------------------------------------------+ + | Bug #: 2097 Product: XalanJ2 | + | Status: NEW Version: 2.0.x | + | Resolution: Platform: All | + | Severity: Major OS/Version: All | + | Priority: Other Component: Xalan | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + | CC list: Cc: | + +----------------------------------------------------------------------------+ + | URL: http://www.biglist.com/cgi-bin/wilma/wilma_hiliter/xsl-list/ | + +============================================================================+ + | DESCRIPTION | + Embedded stylesheets' xsl elements are processed only if the xmlns:xsl namespace is +declared at the stylesheet element. + + If the xmlns:xsl namespace is declared at the document root (as is usual), the xsl +elements in the embedded stylesheet are not processed, although they should be. + + This becomes a problem with generated embedded XSL stylesheets: xsl:namespace-alias +causes the declaration to appear only at the generated document root, and the ensuing +embedded stylesheet is consequently processed incorrectly. The only workaround that +I've discovered is to construct all of the generated XSL elements with <xsl:element +name="x:stylesheet" namespace="..."> which becomes very tedious. + + This bug occurs both in Xalan 1.2.2 (under Cocoon 1.8.2, tested under Win2000 and +Mac OS X) as well as after updating to Xalan 2.1.0 (latest release build, tested on +Mac OS X only). + + Bug first encountered 06/06/01. + + Example stylesheet and generated result in URL (to a mail to the Mulberry XSL list). \ No newline at end of file
