xsl-list
[Top] [All Lists]

How to filter nodes on attribute values

2003-03-10 10:13:01
Hello,
I have another problem.

I wish to apply formatting on a set of nodes which have a certain value
in the attribute.
I mean -
 <Annotation type="interesting">
    <book id="bk106">
      <author>Randall, Cynthia</author>
      <title>Lover Birds</title>
    </book>
</Annotation>
<Annotation type="boring">
   <book id="bk102">
      <author>Ralls, Kim</author>
      <title>Midnight Rain</title>
    </book>
</Annotation>
-------------------
So that I can show all nodes ANNOTATION with type="interesting" with RED
colored font and
all nodes ANNOTAITON with type="boring" with GREEN colored font.
Could somebody please guide me how to do this.
I donot wish to use When or If because I have to use apply-imports which
doesnot work with When and If.

Thanks in advance
Ankit


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



<Prev in Thread] Current Thread [Next in Thread>