Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
XML
XPATH2.0 fn:matches() can somebody confirm if my understanding is OK
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="Pavel Lepin, post: 3186221"] pavel@debian:~/dev/xslt$ saxon -t matches.xsl matches.xsl Saxon 8.8J from Saxonica Java version 1.5.0 Stylesheet compilation time: 767 milliseconds Processing file:/var/www/dev/xslt/matches.xsl Building tree for file:/var/www/dev/xslt/matches.xsl using class net.sf.saxon.tinytree.TinyBuilder Tree built in 28 milliseconds Tree size: 86 nodes, 0 characters, 30 attributes <?xml version="1.0" encoding="UTF-8"?> <output xmlns:fn="[URL]http://www.w3.org/2005/xpath-functions[/URL]"> <analyze> <m group="1">@</m> <m group="2">abcd</m> <m group="3">123</m> </analyze> <functions> <matches> <item Value="@param[2]" Type="Parameter"/> </matches> <tokenize> <tokens count="2"> <token value="@param[2"/> <token value=""/> </tokens> </tokenize> <matches> <item Value="#define" Type="Define"/> </matches> <tokenize> <tokens count="1"> <token value="#define"/> </tokens> </tokenize> <matches> <item Value="0" Type="Value"/> </matches> <tokenize> <tokens count="1"> <token value="0"/> </tokens> </tokenize> <matches> <item Value="H" Type="Value"/> </matches> <tokenize> <tokens count="1"> <token value="H"/> </tokens> </tokenize> <matches> <item Value="L" Type="Value"/> </matches> <tokenize> <tokens count="1"> <token value="L"/> </tokens> </tokenize> <matches> <item Value="invalid" Type="ERROR"/> </matches> <tokenize> <tokens count="1"> <token value="invalid"/> </tokens> </tokenize> <matches> <item Value="##" Type="ERROR"/> </matches> <tokenize> <tokens count="2"> <token value="#"/> <token value=""/> </tokens> </tokenize> <matches> <item Value="@@" Type="ERROR"/> </matches> <tokenize> <tokens count="2"> <token value="@"/> <token value=""/> </tokens> </tokenize> <matches> <item Value="HL" Type="ERROR"/> </matches> <tokenize> <tokens count="1"> <token value="HL"/> </tokens> </tokenize> </functions> </output>Execution time: 212 milliseconds Memory used: 12115968 NamePool contents: 33 entries in 30 chains. 8 prefixes, 8 URIs pavel@debian:~/dev/xslt$ Right. Parsing a few dozen lines of XSLT2, formatted with tabs, with no respect for 78 chars rule, AND with some regexen thrown in as an added bonus, *AND* without having the slightest idea what the hell it is supposed to do somehow doesn't fit my idea of fun. [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
XML
XPATH2.0 fn:matches() can somebody confirm if my understanding is OK
Top