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]

Problem: namespace declaration in output document


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


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