| |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Fun with containsIn my previous post I was demonstrating how you can include the output of an XPath query in your posts. What also turned up is how you have to be careful with the contains query. If you notice in the first table Annie Lennox shows up more often then you'd expect, this is the result of the contains query matching on the table element included in the post for the second query. Since it matches on the contents of the XPath and XSL-T is good at recursive processing it happily evaluates the query and includes the output. I'm not sure if that's such a bad thing. A slight modification to the query will get the expected results. <xpath-query>/item//table[tr[contains(.,'Annie Lennox')]]</xpath-query>
Posted by Kimbro Staken Wednesday Sep 17, 2003 at 4:12 AM | Recommended Sites JumpBox Virtual Appliances Virtualization Daily Grid7 Venturecast Inspirational Technology Scrollin on Dubs MC Ping - Microcontent Notfications
Archives
XML --
subscribe
Music -- subscribe Programming -- subscribe Python -- subscribe Syncato -- subscribe Photography -- subscribe Mac OS X -- subscribe General -- subscribe Canon EOS 1D -- subscribe Canon EOS 10D -- subscribe Canon EOS Digital Rebel -- subscribe Samsung Digimax V50 -- subscribe | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Copyright 2002, 2003 Kimbro Staken
Powered By: Syncato 0.8 | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||