Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Parameter substitution for namespaces does not work?

 
Rein Reezigt
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all,
For automatic web service generation, we generate multiple wsdl (xml) files from xml files.
The wsdl definition tag, holds several namespaces, e.g xmlns:intf and xmlns:impl. I need to set these namespaces different for each different wsdl file, so I created a parameter which is substituted in in the template.
so in my xsl I have :
...
<xsl utput method="xml" indent="yes"/>
<xsl aram name="impl"/>
...
(first step
<wsdl efinitions xmlns="http://schemas.xmlsoap.org/wsdl/"
blablabla
xmlns:impl="{$impl}">
I tried setting the parameter through both ant and a Java object. Both end up not substituting the parameter for the value I want it to be. It looks like it is completely ignored once it sees that the key starts with xmlns. If I would rename xmlns:impl with for example 'bitemexalan', then the parameter would be substituted.
I'm using xalan 2.6.0.
Does anyone have any idea? I kinda ran out of them.
Thanks in advance,
Rein
 
Balaji Loganathan
author and deputy
Bartender
Posts: 3150
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Rein Reezigt:
Hello all,
<wsdl efinitions xmlns="http://schemas.xmlsoap.org/wsdl/"
blablabla
xmlns:impl="{$impl}">

Use xsl:element and xsl:attribute for generating Elements(definitions) and its attributes.
Sorry dont have instant example, plz use this as a clue.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic