This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

namespace dynamic declaration


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]