X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=pres-esop15%2F01.xhtml;h=d74a138f9aa51439db6ede4a8f36c5566ff6e5b1;hb=564cbcc2c27a723d2bdf12cf690a66eb7f36b813;hp=fe247551a9c2056375d1290bcc6d4e8b729744c7;hpb=c3072e9daada0a8f3d4ec882b064011316191bb1;p=hacks%2FsimpleWebSlides.git diff --git a/pres-esop15/01.xhtml b/pres-esop15/01.xhtml index fe24755..d74a138 100644 --- a/pres-esop15/01.xhtml +++ b/pres-esop15/01.xhtml @@ -195,26 +195,26 @@

-

The XQuery 3.0 W3C Standard

+

XQuery 3.0

+

W3C standard to query XML documents

- declare function get_links($page, $print) { for $i in $page/descendant::a[not(ancestor::b)] - return print($i) + return $print($i) } declare function pretty($link) { typeswitch($link) - case $l as element(a) - return switch ($l/@class) - case "style1" + case $l as element(a) + return switch ($l/@class) + case "style1" return <a href={$l/@href}><b>{$l/text()}</b></a> - default return $l + default return $l - default return $link + default return $link } - let $bold_links := get_links(document("file.html"), $pretty) + let $bold_links := get_links(document("file.xhtml"), $pretty)