Subject: [xsl] Adding *xmlns* attribute dynamically From: "Kishore Bankupelle" <brkkis@xxxxxxxxx> Date: Fri, 12 Jan 2007 10:40:20 +0000 |
I am new to XSL and writing a XSL to transform list of XSDs to another list of XSD.
The issue is, i want to assign a dynamic value for "xmlns" attribute in <xs:schema>. From the mailing archieves i see that i cannot add "xmlns" as an attribute. If i try below
*<xs:schema> <xsl:attribute name="xmlns"> <xsl:value-of select="$ReqResName" /> </xsl:attribute> </xs:schema> * where "ReqResName" is a variable(<xsl:variable>), i am getting the below error.
I believe this is because of adding "xmlns" as an attribute. If you add the attribute "xmlns" directly to the tag, you cant change the attribute value dynamically. So,
The above example does not give you a way to change the value represented by "??????" dynamically. I mean to say we cant access any XSL variable in the place of "????????".
So if i want to change the value of "xmlns" attribute in "<xs:schema>", what is the solution?
Regards, Kishore
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] substring-before doesn't , Marco | Thread | RE: [xsl] Adding *xmlns* attribute , Michael Kay |
RE: [xsl] substring-before doesn't , Michael Kay | Date | RE: [xsl] Adding *xmlns* attribute , Michael Kay |
Month |