[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Recursive Processor to find Type of complex type f

Subject: Re: Recursive Processor to find Type of complex type for WSDL file
From: "Senthilkumaravelan K" <skumaravelan@xxxxxxxxxxxxxx>
Date: Wed, 14 Mar 2007 07:56:45 -0700
Re:  Recursive Processor to find Type of complex type f
As you mentioned,The XPath would only fetch only string and int types
and I have to find the What are elements invloved for Address and
their datatype and PHone and stuff.
I am struggling to loop thorugh this kind of combination.
Where I need to pass Address as key and find all the data type for the same

On 3/14/07, Abel Braaksma <abel.online@xxxxxxxxx> wrote:
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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.