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

Re: Carrying Namespaces through a XSL to XSL Transform

Subject: Re: Carrying Namespaces through a XSL to XSL Transformation
From: "Kevin McCarthy" <Kevin@xxxxxxxxxxxx>
Date: Wed, 27 Dec 2000 10:39:08 -0800
kevin mccarthy microsoft

Here is a template that I have used in the past, using MSXML3.
This successfully outputs multiple namespace references in the resulting
I am using parameters in the below example to define on of my namespaces and
schema locations.

Good luck,

  renders the opening xsl:stylesheet tag and attrs
<xsl:template name="renderXSLStylesheetStart">
<xsl:text disable-output-escaping="yes">&#60;&#63;xml
<xsl:text disable-output-escaping="yes">
&#60;xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  xmlns:<xsl:value-of select="$ns"
/>="x-schema:http://localhost/schema/<xsl:value-of select="$name"
  xmlns:editA="x-schema:http://localhost/schema/EditAttributes.xml" &#62;

-----Original Message-----
From: Smith, Chad <chadsm@xxxxxxxxx>
To: 'xsl-list@xxxxxxxxxxxxxxxxxxxxxx' <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Date: Wednesday, December 27, 2000 10:30 AM
Subject:  Carrying Namespaces through a XSL to XSL Transformation

>> Because of the inability to convert XPath strings to XPath nodesets, I am
>> forced to perform XSL to XSL Transformations.  these transformations have
>> worked out well with a single exception: I cannot migrate more than one
>> namespace to the resulting XSLT file.  This is a problem because I would
>> like for the resulting XSLT to utilize some form of embedded script, but
>> since I am using Xalan, this requires two additional namespaces.
>> I am currently using 'xsl:namespace-alias' to carry over the actual XSL
>> namespace, however multiple uses of this tag with different properties do
>> not migrate additional namespaces but only attempt to overwrite the
>> Any ideas?
> XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Current Thread


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.
First Name
Last Name
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.