X-Git-Url: http://git.nguyen.vg/gitweb/?a=blobdiff_plain;f=pres-esop15%2F01.xhtml;h=d74a138f9aa51439db6ede4a8f36c5566ff6e5b1;hb=564cbcc2c27a723d2bdf12cf690a66eb7f36b813;hp=e1e432ebd7e0c154813c394bcf23f3c159bc52c7;hpb=f731bd2558865c08d22c2bee90339ef304937c02;p=hacks%2FsimpleWebSlides.git diff --git a/pres-esop15/01.xhtml b/pres-esop15/01.xhtml index e1e432e..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)