Article View: comp.text.xml
Article #41Expert XML/XSL?
From: Mike Bowling
Date: Tue, 13 Feb 2001 19:06
Date: Tue, 13 Feb 2001 19:06
53 lines
3847 bytes
3847 bytes
Are you the expert that can help me with an XML/XSL prob? Here it is:
I have element(s) "Party" in my xml doc
<Party PartyType="A" ID="003439" UDF1="Schultz"
Name="Boise Property Appraisers" UDF3="B328">
<ContactDetail ContactPointRole="WORK"
ContactPointType="PHONE" Value="(301) 557-2366"/>
<ContactDetail ContactPointRole="WORK"
ContactPointType="EMAIL" Value="alex@boise.net"/>
<PersonName LastName="Appraiser" FirstName="Alex
"/>
<Address StreetAddress1="45 East Wilkes Street,
Suite 14" City="Boise" State="ID" County="Boise" Zip="78620"/>
</Party>
<Party PartyType="B" ID="003438" UDF1="Schultz"
Name="ABC Mortgage Co" UDF3="B328">
<ContactDetail ContactPointRole="WORK"
ContactPointType="PHONE" Value="(302) 478-8617"/>
<ContactDetail ContactPointRole="WORK"
ContactPointType="EMAIL" Value="jjones@aol.com"/>
<PersonName LastName="Smith" FirstName="John "/>
<Address StreetAddress1="330 Pike St"
City="Wilmington" State="DE" County="Unknown" Zip="19802"/>
</Party>
I needed to show values only from the second element and did it this
way:
<xsl:if test="@PartyType[.!value()='B']">
and then listed the variables I wanted, ie...
<xsl:value-of select="PersonName/@FirstName"/>
...and so on, and it works fine
HOWEVER, now I need to show both ContactDetail/@Value values (inside
PartyType B), the phone and the email addy. My problem is it shows only
the first, and if I try to make it show both, it only lists the phone
number twice.
Aaaaargh! I've been trying to solve this for two days, what am I
missing?. HELP!
There's a beer (or your choice of beverage, etc.) in it for whoever can
help...
Thanks,
MikeMonster
mikebowling@hotmail.com
Technical Details
Message-ID:
<3A8985A9.17D30658@hotmail.com>Path:
arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!cyclone.tampabay.rr.com!cyclone.southeast.rr.com!typhoon.southeast.rr.com.POSTED!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 1061e4,5ddd98be2aed77fc,start X-Google-Attributes: gid1061e4,public X-Google-Thread: 10cf80,5ddd98be2aed77fc,start X-Google-Attributes: gid10cf80,public X-Google-Thread: 1047a4,5ddd98be2aed77fc,start X-Google-Attributes: gid1047a4,public X-Google-Thread: 107178,5ddd98be2aed77fc,start X-Google-Attributes: gid107178,public X-Google-Thread: fa6ce,5ddd98be2aed77fc,start X-Google-Attributes: gidfa6ce,public X-Google-Thread: 114f60,5ddd98be2aed77fc,start X-Google-Attributes: gid114f60,public X-Google-Thread: 10df13,5ddd98be2aed77fc,start X-Google-Attributes: gid10df13,public X-Google-Thread: 1006ac,5ddd98be2aed77fc,start X-Google-Attributes: gid1006ac,public X-Google-ArrivalTime: 2001-02-13 11:21:32 PST Path: arc1-ca.pugleaf.net!supernews.google.com!sn-xit-02!sn-xit-04!supernews.com!xfer13.netnews.com!netnews.com!newsfeed.skycache.com!Cidera!cyclone.tampabay.rr.com!cyclone.southeast.rr.com!typhoon.southeast.rr.com.POSTED!not-for-mail Message-ID: <3A8985A9.17D30658@hotmail.com> From: Mike Bowling <mikebowling@hotmail.com> X-Mailer: Mozilla 4.73 [en] (Win98; I) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.text.xml,microsoft.public.windows.inetexplorer.ie5.programming.xml,microsoft.public.xsl,microsoft.public.xml,borland.public.xml,ibm.software.developerworks.xml.newbies,microsoft.public.dotnet.xml,fr.comp.text.xml Subject: Expert XML/XSL? Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 54 Date: Tue, 13 Feb 2001 19:06:08 GMT NNTP-Posting-Host: 24.88.41.60 X-Complaints-To: abuse@mediaone.net X-Trace: typhoon.southeast.rr.com 982091168 24.88.41.60 (Tue, 13 Feb 2001 14:06:08 EST) NNTP-Posting-Date: Tue, 13 Feb 2001 14:06:08 EST Organization: MediaOne - Atlanta