[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Xalan Java 2: doesn't seem to output namespaces to res

Subject: Xalan Java 2: doesn't seem to output namespaces to result document ...
From: "Ross, Douglas" <DRoss@xxxxxxxxxx>
Date: Tue, 11 Jan 2005 14:16:39 -0500
xslt java namespace missing
How do I get the namespaces to show up in the output document?

I use XSLT to create XSLT.

When using Xalan version 1, the following xml outputs:

	<xsl:stylesheet xmlns:xsl="..." xmlns:bla="...">
     		<xsl:call-template name="bla:do-something"/>
	</xsl:stylesheet>

And when using Xalan Java 2, I get:

	<xsl:stylesheet xmlns:xsl="...">
      	<xsl:call-template name="bla:do-something"/>
	</xsl:stylesheet>

Note: 'xmlns:bla' is missing!

Needless to say, the second one fails when I execute it as input -XSL.

I tried all the things that made sense to me. Add an attribute,
namespace-alias, and a several other things to no avail. Yes I googled,
searched, and asked colleagues (begged actually).

It seems non-triavial to have to change versions of Xalan just for this
behavior. What gives? Is there an explaination?

Any help would be appreciated.

Doug

PS Here is a annotated XSLT script:

<?xml version="1.0" ?>
<xsl:stylesheet version="1.2"
    <!--grasping here
      xmlns=http://www.w3.org/TR/REC-xml-names
    -->
      xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
      xmlns:bla="http://blah-blah"
>

<xsl:output method="xml" />

<!-- didn't help
<xsl:namespace-alias stylesheet-prefix="bla" result-prefix="bla"/>
-->

<xsl:template match="/">
      <xsl:element name="xsl:stylesheet">
            <xsl:attribute name="version">1.2</xsl:attribute>
      <!-- didn't help: was ignored unresolve namespace 'xmlns'
            <xsl:attribute
name="xmlns:bla">http://developer.kronos.com/application-descriptor/v3/s
truts-app</xsl:attribute>
       -->
            <xsl:apply-templates />
      </xsl:element>
</xsl:template>

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.