| ||||||||||||||
Resin 3.1 Documentation Examples Changes Overview Installation Configuration Quercus SOA/IoC JSP Servlets and Filters Admin (JMX) EJB Amber Security Performance Hessian XML and XSLT Third-party Troubleshooting/FAQ Introduction JAXP XML Path Language (XPath) XSLT Filter XSLT XPath Functions FAQ Scrapbook |
Node Set Functionslast()Returns the number of nodes matching the axis.
count(node-set)Returns the number of nodes matching the pattern.local-part(node)Returns the local part of the node's name. In other words, the node name stripped of the namespace prefix. namespace(node)Returns the namespace URL the node's name. name(node)Returns the node's name. id(idref)Returns the node with the 'ID' attribute equals to idref. The ID attribute is assigned in the DTD. The actual attribute name may, of course, vary. String Functionsstring(obj)Converts the object to a string. concat(s1, s2, ...)Concatenates strings. starts-with(string, head)True if starts with .contains(string, substring)True if contains .substring-before(string, substring)Returns the substring of before matching .substring-after(string, substring)Returns the substring of after the matching .string-length(string)Returns the string length of .normalize-space(string)Normalizes whitespace. Consecutive whitespace is converted into a single space. Leading and trailing whitespace is trimmed. translate(string, from, to)Converts characters in a string, like the 'tr' command. Boolean Functionsboolean(obj)Converts into a boolean.true()Returns true. false()Returns false. lang(language)Returns true if the context node has an xml:lang of .Number Functionsnumber(obj)Converts to a number (Java double).sum(node-set)Converts the node values of to numbers and adds them.floor(number)Returns the closest integer below .ceiling(number)Returns the closest integer above .round(number)Rounds to the nearest integer.Resin Extensionsif(test,a,b)Conditionally selects the value of or . If evaluates to true, return the value of . Otherwise, return the value of .
|