Subject: [xsl] Problem: namespace declaration in output document From: "Yvonne Gerber" <ygerber@xxxxxx> Date: Wed, 26 Sep 2001 12:20:51 +0100 |
Hello, I am quite new to xslt, so I apologize if I am asking something obvious. I am trying to create a wsdl document out of an xml document. Now, I have the following problem with the namespace declaration: The wsdl document must look like this: <definitions name="xyz" targetNamespace="xyz" xmlns:tns="X"> ... </definitions> where X is the name of the created wsdl document. I tried the following: <xsl:template name="output"> <xsl:variable name="nameversion" select="concat(@name,'_',@version)"/> <xsl:variable name="name" select="//import/@group"/> <definitions name="{$name}" targetNamespace="{$name}" xmlns:tns="{$nameversion}"> ... </xsl:template> But in the wsdl document I got: <definitions xmlns:tns="{$nameversion}" name="DO-Definitions.employee" targetNamespace="DO-Definitions.employee"> ... </definitions> How can I manage to get the desired xmlns:tns="nameOfTheWSDLFile" in the wsdl document? Thanks for your help, Yvonne Gerber XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Throw an error from XSL, Goetz Bock | Thread | RE: [xsl] Problem: namespace declar, Michael Kay |
RE: [xsl] Embedded Stylesheets, Michael Kay | Date | RE: [xsl] Embedded Stylesheets, Michael Kay |
Month |