Re: [xsl] Recursive Processor to find Type of complex type for WSDL file

Subject: Re: [xsl] Recursive Processor to find Type of complex type for WSDL file
From: Abel Braaksma <abel.online@xxxxxxxxx>
Date: Wed, 14 Mar 2007 15:35:00 +0100
Senthilkumaravelan K wrote:
<element name="firstName" type="xsd:string"/>
 <element name="lastName" type="xsd:string"/>
 <element name="address1" type="tns2:Address"/>

<snip />

<element name="areaCode" type="xsd:int"/>

<snip />

The objective is to get all the type data for all the elements till it
is string or int.

In that case, you can simply do something along the line of selecting:


//xs:element[@type = 'xsd:string' or @type = 'xsd:int']

where 'xs' is bound to the namespace of XML Schema.

It will get you all elements of type 'xsd:string' of of type 'xsd:int'.

If with 'recursive' in your OP you meant that you somehow need to follow and/or output the parents (or data from them), you can wrap some modified copy template around this.

-- Abel

Current Thread