eXist Xquery Examples[3]

[入库:2006年2月23日] [更新:2007年3月24日]

本文简介:

             2

             12

             3

             13

      

      

       ex:>for $speech in document("/db/tonybooks/Catalog.xml")//categoryName

                     return <br/>{$speech}

       re:>

      

       ex:>

              <html>{

             let $book := document("mybook.xml")/book

             for $ch in $book/chapter

           return <h2>{$ch/title)</h2>

              }</html>

       re:>    

     

6 使用text(),返回内容

       ex:>let $book:=document("examples.xml")/example-queries/query

                     return $book/code/text()

       ex:>let $doc := document("examples.xml")//query/code/text()

                     return $doc          

                    

                    

                    

[函数的定义与调用]

       ex:>

本文关键:eXist Xquery Examples
  相关方案
Google
 

本站最佳浏览方式为 分辨率 1024x768 IE 6.0(或更高版本的 IE浏览器)

go top