[ http://issues.apache.org/jira/browse/XALANJ-1923?page=all ]
Christine Li resolved XALANJ-1923:
----------------------------------
Fix Version: CurrentCVS
Resolution: Fixed
The patch for bug XALANJ-1967 fixed this problem.
> <xsl:namespace-alias stylesheet-prefix="foo" result-prefix="#default" />
> ------------------------------------------------------------------------
>
> Key: XALANJ-1923
> URL: http://issues.apache.org/jira/browse/XALANJ-1923
> Project: XalanJ2
> Type: Bug
> Components: transformation, Xalan-interpretive
> Versions: 2.6
> Environment: Operating System: All
> Platform: Other
> Reporter: Galen Sampson
> Assignee: Yash Talwar
> Fix For: CurrentCVS
> Attachments: Patch.txt
>
> This bug exists in the implementation shipped with the JWSDP-1.4:JAXP-1.2.6
> on
> Sun's java xml site:
> http://java.sun.com/xml/jaxp/index.jsp
> If the result-prefix is "#default" then the output should make the source
> prefix's URI the outputs default namespace, removing any prefixes from nodes
> in
> templates. This is not the case.
> See:
> http://www.w3.org/TR/xslt#literal-result-element
> XSLT file "bug.xslt":
> <?xml version="1.0" encoding="utf-8" ?>
> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:html="http://http://www.w3.org/1999/xhtml">
> <xsl:output method="xml" version="1.0" encoding="utf-8" indent="yes"
> doctype-public="-//W3C//DTD XHTML 1.0 Strict//EN"
> doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd" />
> <xsl:namespace-alias stylesheet-prefix="html" result-prefix="#default" />
> <xsl:strip-space elements="*" />
> <xsl:template match="/adoc">
> <html:html>
> <html:head>
> <html:title>
> A title
> </html:title>
> </html:head>
> <html:body>
> Some text
> </html:body>
> </html:html>
> </xsl:template>
> </xsl:stylesheet>
> Source Document "bug.xml":
> <?xml version="1.0" ?>
> <adoc />
> Command:
> java org.apache.xalan.xslt.Process -IN bug.xml -XSL bug.xslt -OUT out.html
> Produces:
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html:html PUBLIC "-//W3C//DTD XHTML 1.0
> Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html:html>
> <html:head>
> <html:title>
> A title
> </html:title>
> </html:head>
> <html:body>
> Some text
> </html:body>
> </html:html>
> The output should be:
> <?xml version="1.0" encoding="utf-8"?>
> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
> "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
> <html xmlns="http://http://www.w3.org/1999/xhtml">
> <head>
> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
> <title>
> A title
> </title>
> </head>
> <body>
> Some text
> </body>
> </html>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]