This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Retrieving subelemets attributes & its text node data
- From: "Shaik Zulfakhar Ali" <shaik at pps dot sdl dot melco dot co dot jp>
- To: <xsl-list at lists dot mulberrytech dot com>
- Date: Fri, 29 Mar 2002 16:13:45 +0900
- Subject: [xsl] Retrieving subelemets attributes & its text node data
- Reply-to: xsl-list at lists dot mulberrytech dot com
Hi All,
Is it possible to retrieve all the subelements its attributes & its text
node data by simply knowing the root node name?
I have an xml file like below:
<part name="TR1" category="TR">
<spec-summary>
<phase value="3" />
<transformation type="voltage">
<primary connection="wye">66000</primary>
<secondary connection="delta">6600</secondary>
</transformation>
<capacity unit="VA">5000000</capacity>
<cooling-method type="GNAN" />
<impedance type="%Z">7.5
<accuracy min="-10%" max="+10%" />
</impedance>
</spec-summary>
</part>
By just knowing the part & spec-summary element names Can we retrieve all
the subelements of
spec-summary with attributes & text node data ?
as :-
> phase value = 3
> transformation type = voltage
> primary connection = wye
> 66000
> secondary connection = delta
> 6600
> capacity unit=VA
> 5000000
> cooling-method type = GNAN
> impedance type = %Z
> accuracy min = -10%
> max = +10%
Thanks for your time.
Zulfakhar
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list