|
-
Feb 10th, 2004, 01:33 PM
#1
Thread Starter
Lively Member
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!
-
Feb 10th, 2004, 02:00 PM
#2
Predicates 
Code:
<xsl:template match="BOOK[CODE = '10001']"/>
[Edit] Just noticed the case of your Xml elements
-
Feb 10th, 2004, 02:37 PM
#3
Thread Starter
Lively Member
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" ?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|