Subject: Re: [xsl] attributes and nodes From: Oleg Tkachenko <olegt@xxxxxxxxxxxxx> Date: Mon, 21 Apr 2003 16:18:11 +0300 |
I have xml: <AddressCountryList> <Country ID="1" DepartID="8" Name="countryname"> <City Nick="nickname1" Mail="mail" AddressID="1"> <PhoneList> <Phone Num="pnone"/> </PhoneList> </City> <City Nick="nickname2" Mail="mail" AddressID="3"> <PhoneList> <Phone Num="phone"/> </PhoneList> </City> </Country> ... </AddressCountryList>
I need an XPATH, which matched Country with _all_ it's attributes and _some_ childrens.
Something like //AddressCountryList/Country/@*|City[@Nick='nickname1']
The result I need is:
<AddressCountryList> <Country ID="1" DepartID="8" Name="countryname"> <City Nick="nickname1" Mail="mail" AddressID="1"> <PhoneList> <Phone Num="pnone"/> </PhoneList> </City> </Country> ... </AddressCountryList>
This task should be done with only one XPATH because I'll use it not in xslt, ubt on other script language.
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] attributes and nodes, Evgenia Firsova | Thread | [xsl] Re: XSL-List Digest V4 #1252, Joseph Kesselman |
[xsl] attributes and nodes, Evgenia Firsova | Date | Re: [xsl] A Question **TO** XSLT Ne, James J. Ramsey |
Month |