> Remember the xPath: usage gives access to full XPath syntax (not just axis 
> and nametests), including predicates, functions, and variables. XPath is 
> really a different language so mapping it all to a ST DSL is tricky. For 
> example, XPath 1.0 is weakly typed so "1" = 1 = "1.0" but clearly this is 
> false in ST. Be aware of the differences when you go from one to the other.

By this I mean XPath has many JavaScript style implicit conversions. for 
example, if an XPath predicate evaluates to a node set, it's converted to a 
boolean: true if non-empty, false otherwise. Collections in ST obviously aren't 
converted automatically to true or false when used with ifTrue:ifFalse:.

Reply via email to