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

Generating an XSLT stylesheet with additional namespac

Subject: Generating an XSLT stylesheet with additional namespaces
From: "Jim Earley" <Jim.Earley@xxxxxxxxxxxxxxxxxxxxxx>
Date: Mon, 5 Jun 2006 17:38:17 -0600
james earley xml
Hello,

I'm trying to generate a "stub" XSL stylesheet by reading an XML Schema
file
to generate the template matches for all declared elements.  The problem
I
have is that the schema is using a default namespace and I want to
declare a
namespace prefix (and the URI) in the generated stylesheet.

For example:

<xsl:template match="/">

	<xsl:element name="xsl:stylesheet">
		<xsl:if test="@targetNamespace">
			<!--
				specify the namespace on the stylesheet
element???
			-->
		</xsl:if>

		<xsl:for-each select="//xsd:element[@name]">
			<xsl:sort select="@name"/>
			<xsl:apply-templates select="."/>
		</xsl:for-each>
	</xsl:element>
</xsl:template>


How can I specify an "additional" and URI on the root xsl:stylesheet
element?

Any ideas?

Thanks in advance for your help.

================
Jim Earley
XML Developer/Consultant
Flatirons Solutions
4747 Table Mesa Drive
Boulder, CO 80301

jim.earley@xxxxxxxxxxxxxxxxxxxxxx

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.