-
How do I filter records?
How do I filter certain records in my XSL?
Example:
- <BOOK>
<CODE>10001</CODE>
<TITLE>TEST TITLE</TITLE>
</BOOK>
- <BOOK>
<CODE>10002</CODE>
<TITLE>TEST TITLE2</TITLE>
</BOOK>
In my XSL:
<xsl:template match="/">
Then how do I just filter where Book code=10001 ?
Thanks!
-
Predicates :)
Code:
<xsl:template match="BOOK[CODE = '10001']"/>
[Edit] Just noticed the case of your Xml elements
-
Ok, given that, let's take it one step further.
I have this node "fv".
Example:
<fv sm="2" class="css365AA9ADE4FED3CF81096089A5F1FF8ED">10</fv>
I've no idea what sm or class is (this XML was generated by another program.
Now, given I know the node is "fv" how do I filter on the value "10" ?