[xsl] Getting a predicate right

Subject: [xsl] Getting a predicate right
From: Kuhns Matt <kuhns_m@xxxxxxxxx>
Date: Tue, 30 Jul 2002 12:25:47 -0700 (PDT)
Sorry if I wasn't clear enough about what I wanted.
My XML Sheet looks like this:
<test>
<colors>
  <desc id="0" name="blue"/>
  <desc id="1" name="red"/>
  <desc id="2" name="white"/>
</colors>
<mesg grp="1">Hi how are you?</mesg>
<mesg grp="0">I am fine.</mesg>
<mesg grp="2">That is good.</mesg>
</test>
In my XSL I am going through the messages and trying
to match the attribute grp from mesg with the
attribute id from desc.
something like this:
//test/colors/desc[@grp]/@name
or
//test/colors/desc[@id = @grp]/@name
I hope this is clearer.
Thanks in advance.
Matt




__________________________________________________
Do You Yahoo!?
Yahoo! Health - Feel better, live better
http://health.yahoo.com

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread