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

namespace dynamic declaration

Subject: namespace dynamic declaration
From: "Tevoi Andrea" <tevoi@xxxxxx>
Date: Wed, 26 Jun 2002 15:28:10 +0200
xpath dynamic namespace
Hi,

in Xsl i'd like to do something like this:

<xsl:attribute name="xmlns:myprefix"><xsl:value-of select="any XPath expression"/></xsl:attribute>

but for Xsl this is an error (because attribute name begin with "xmlns").

How can i do? I mean: i would create a namespace dynamically using an XPath expression, because I need to create (by xsl transformation) a Schema like this:

<xsd:schema targetNamespace="my dynamic namespace" xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:myprefix="my dynamic namespace">...

I can create a targetNamespace attribute with:
<xsl:attribute name="targetNamespace"><xsl:value-of select="XPath..."/></xsl:attribute>

but not a xmlns:myprefix attribute...

thanks for your attention,

Andrea Tevoi

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


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.