XPath 1.0 Tutorial

icon

19

pages

icon

English

icon

Documents

Écrit par

Publié par

Le téléchargement nécessite un accès à la bibliothèque YouScribe Tout savoir sur nos offres

icon

19

pages

icon

English

icon

Documents

Le téléchargement nécessite un accès à la bibliothèque YouScribe Tout savoir sur nos offres

Markup Languages and Semistructured Data - SS’02http://www.pms.informatik.uni-muenchen.de/lehre/markupsemistrukt/02ss/XPath 1.0 Tutorial28th of May, 2002Dan OlteanuXPath 1.0 - W3C Recommendation language for addressing and matching parts of an XML document. designed to be used standalone, but also by XPointer, XSLT, XQuery. uses a compact, non-XML format to facilitate use within URIs and attribute values. provides basic facilities for string, number and boolean manipulation. supports namespaces.XPath 1.0 Data Model can be derived from XML InfoSet. XML document is viewed as a tree, containing di erent kinds of nodes. kinds of nodes: root, element, text, attribute, namespace, processing instruction, com-ment nodes. imposes a document order de ned on all nodes except attribute and namespace nodes(order of occurence of element start-tags). the root node is the rst node. the namespace nodes are de ned to occur before the attribute nodes. root and element nodes have an ordered list of children. an element node is the parent of the associated set of attribute/namespace nodes,the attributes/namespaces are not children of the associated element node.Various FruitsThe next chapters introduce different kinds of fruits, likestrawberries or apples.Strawberries< ... </div> <a href="#" class="button button--third-simplified button--xs-mixed js-collapse-btn flex-row-direction-default"> <span>Voir</span> <img src="/Content/imgv6/icons/arrowsNavigation/plus.svg" class="is-toggle-icon" alt="icon arrow" /> </a> </div> </div> <div class="tab__pane pageProduct__itemInfo " id="info"> <div class="pageProduct__infos-container"> <div class="pageProduct__infos-wrapper"> <div class="pageProduct__infos-col1"> <p class="pageProduct__title">Publié par</p> </div> <div class="pageProduct__infos-col2"> <p class="pageProduct__text"><a href="https://www.preprod2.youscribe.com/fiob/" title="Fiob" rel="author">Fiob</a></p> </div> </div> <div class="pageProduct__infos-wrapper"> <div class="pageProduct__infos-col1"> <p class="pageProduct__title"> Langue </p> </div> <div class="pageProduct__infos-col2"> <p class="pageProduct__text"> <span class="flag flag_en">English</span> </p> </div> </div> </div> </div> <div class="tab__pane " id="tag"> </div> <div class="tab__pane " id="extrait"> <div class="collapse js-collapse flex-column-horizontal-default"> <div class="collapse__text-area collapse__text-area--large js-collapse-text-area"> <meta itemprop="productID" content="543009" /> <meta itemprop="description" content="Markup Languages and Semistructured Data - SS’02http://www.pms.informatik.uni-muenchen.de/lehre/markupsemistrukt/02ss/XPath 1.0 Tutorial28th of May, 2002Dan OlteanuXPath 1.0 - W3C Recommendation language for addressing and matching parts of an XML document. designed to be used standalone, but also by XPointer, XSLT, XQuery. uses a compact, non-XML format to facilitate use within URIs and attribute values. provides basic facilities for string, number and boolean manipulation. supports namespaces.XPath 1.0 Data Model can be derived from XML InfoSet. XML document is viewed as a tree, containing di erent kinds of nodes. kinds of nodes: root, element, text, attribute, namespace, processing instruction, com-ment nodes. imposes a document order de ned on all nodes except attribute and namespace nodes(order of occurence of element start-tags). the root node is the rst node. the namespace nodes are de ned to occur before the attribute nodes. root and element nodes have an ordered list of children. an element node is the parent of the associated set of attribute/namespace nodes,the attributes/namespaces are not children of the associated element node.Various FruitsThe next chapters introduce different kinds of fruits, likestrawberries or apples.Strawberries< ..." /> <meta itemprop="image" content="//img.uscri.be/pth/b67830061baedc16ee410b3435f66025b0b99fb1" /> <meta itemprop="name" content="XPath 1.0 Tutorial" /> <meta itemprop="url" content="https://www.preprod2.youscribe.com/catalogue/documents/ressources-professionnelles/informatique/xpath-1-0-tutorial-543009" /> <input id="product_id" name="product_id" type="hidden" value="543009" /> <div class="ys_br_98567 js-extract-visible-content" id="youscribe-reader-543009" data-aura-widget="reader"> <div class="preload external-content" id="ysctn5_514132"> <div class="pg y1" style="width:1531px;height:1060px;" nb="1"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/6aac93c3f0fa1bbe309c66afca951cb2f95abb6d.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:65px; left:34px;"> <span class="tf y664" style="top:0px;left:0px;">Markup Languages and Semistructured Data </span><span class="tf y665" style="top:0px;left:5320px;">- SS’02 </span></div> <div class="tb" style="top:150px; left:34px;"> <span class="tf y668" style="top:0px;left:0px;">h</span><span class="tf y668" style="top:0px;left:89px;">t</span><span class="tf y668" style="top:0px;left:151px;">t</span><span class="tf y668" style="top:0px;left:213px;">p</span><span class="tf y668" style="top:0px;left:302px;">:</span><span class="tf y668" style="top:0px;left:350px;">/</span><span class="tf y668" style="top:0px;left:436px;">/</span><span class="tf y668" style="top:0px;left:522px;">w</span><span class="tf y668" style="top:0px;left:639px;">w</span><span class="tf y668" style="top:0px;left:756px;">w</span><span class="tf y668" style="top:0px;left:874px;">.</span><span class="tf y668" style="top:0px;left:922px;">p</span><span class="tf y668" style="top:0px;left:1011px;">m</span><span class="tf y668" style="top:0px;left:1147px;">s</span><span class="tf y668" style="top:0px;left:1213px;">.</span><span class="tf y668" style="top:0px;left:1261px;">i</span><span class="tf y668" style="top:0px;left:1302px;">n</span><span class="tf y668" style="top:0px;left:1391px;">f</span><span class="tf y668" style="top:0px;left:1443px;">o</span><span class="tf y668" style="top:0px;left:1524px;">r</span><span class="tf y668" style="top:0px;left:1583px;">m</span><span class="tf y668" style="top:0px;left:1719px;">a</span><span class="tf y668" style="top:0px;left:1802px;">t</span><span class="tf y668" style="top:0px;left:1864px;">i</span><span class="tf y668" style="top:0px;left:1905px;">k</span><span class="tf y668" style="top:0px;left:1989px;">.</span><span class="tf y668" style="top:0px;left:2037px;">u</span><span class="tf y668" style="top:0px;left:2126px;">n</span><span class="tf y668" style="top:0px;left:2215px;">i</span><span class="tf y668" style="top:0px;left:2256px;">-</span><span class="tf y668" style="top:0px;left:2313px;">m</span><span class="tf y668" style="top:0px;left:2450px;">u</span><span class="tf y668" style="top:0px;left:2539px;">e</span><span class="tf y668" style="top:0px;left:2615px;">n</span><span class="tf y668" style="top:0px;left:2704px;">c</span><span class="tf y668" style="top:0px;left:2780px;">h</span><span class="tf y668" style="top:0px;left:2869px;">e</span><span class="tf y668" style="top:0px;left:2945px;">n</span><span class="tf y668" style="top:0px;left:3034px;">.</span><span class="tf y668" style="top:0px;left:3082px;">d</span><span class="tf y668" style="top:0px;left:3171px;">e</span><span class="tf y668" style="top:0px;left:3247px;">/</span><span class="tf y668" style="top:0px;left:3333px;">l</span><span class="tf y668" style="top:0px;left:3374px;">e</span><span class="tf y668" style="top:0px;left:3451px;">h</span><span class="tf y668" style="top:0px;left:3540px;">r</span><span class="tf y668" style="top:0px;left:3598px;">e</span><span class="tf y668" style="top:0px;left:3675px;">/</span><span class="tf y668" style="top:0px;left:3761px;">m</span><span class="tf y668" style="top:0px;left:3897px;">a</span><span class="tf y668" style="top:0px;left:3975px;">r</span><span class="tf y668" style="top:0px;left:4034px;">k</span><span class="tf y668" style="top:0px;left:4118px;">u</span><span class="tf y668" style="top:0px;left:4207px;">p</span><span class="tf y668" style="top:0px;left:4295px;">s</span><span class="tf y668" style="top:0px;left:4361px;">e</span><span class="tf y668" style="top:0px;left:4438px;">m</span><span class="tf y668" style="top:0px;left:4574px;">i</span><span class="tf y668" style="top:0px;left:4615px;">s</span><span class="tf y668" style="top:0px;left:4681px;">t</span><span class="tf y668" style="top:0px;left:4743px;">r</span><span class="tf y668" style="top:0px;left:4802px;">u</span><span class="tf y668" style="top:0px;left:4891px;">k</span><span class="tf y668" style="top:0px;left:4975px;">t</span><span class="tf y668" style="top:0px;left:5037px;">/</span><span class="tf y668" style="top:0px;left:5123px;">0</span><span class="tf y668" style="top:0px;left:5209px;">2</span><span class="tf y668" style="top:0px;left:5295px;">s</span><span class="tf y668" style="top:0px;left:5361px;">s</span><span class="tf y668" style="top:0px;left:5426px;">/ </span></div> <div class="tb" style="top:335px; left:34px;"> <span class="tf y808" style="top:0px;left:0px;">XPath 1.0 Tutorial </span></div> <div class="tb" style="top:580px; left:34px;"> <span class="tf y810" style="top:0px;left:0px;">28th of May, 2002 </span></div> <div class="tb" style="top:906px; left:34px;"> <span class="tf y812" style="top:0px;left:0px;">Dan Olteanu </span></div> <span class="fklnk" rel="*http://www.pms.informatik.uni-muenchen.de|lehre|markupsemistrukt|02ss" style="top:159px;left:34px;width:1105px;height:36px;"></span></div><div class="pg y1" style="width:1531px;height:1060px;" nb="2"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/cf2f73c53e8e8cfcf522ee2a02c745148d9b41ab.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:68px; left:34px;"> <span class="tf y2172" style="top:0px;left:0px;">XPath 1.0 - W3C Recommendation </span></div> <div class="tb" style="top:173px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2175" style="top:0px;left:189px;">language for </span><span class="tf y2176" style="top:0px;left:1221px;">addressing </span><span class="tf y2177" style="top:0px;left:2180px;">and </span><span class="tf y2176" style="top:0px;left:2529px;">matching </span><span class="tf y2179" style="top:0px;left:3389px;">parts of an XML document. </span></div> <div class="tb" style="top:306px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2179" style="top:0px;left:189px;">designed to be used standalone, but also by </span><span class="tf y2188" style="top:0px;left:3698px;">XPointer </span><span class="tf y2177" style="top:0px;left:4463px;">, </span><span class="tf y2190" style="top:0px;left:4578px;">XSLT </span><span class="tf y2177" style="top:0px;left:5062px;">, </span><span class="tf y2192" style="top:0px;left:5177px;">XQuery </span><span class="tf y2177" style="top:0px;left:5826px;">. </span></div> <div class="tb" style="top:438px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2203" style="top:0px;left:189px;">uses a compact, </span><span class="tf y2176" style="top:0px;left:1513px;">non-XML </span><span class="tf y2179" style="top:0px;left:2393px;">format to facilitate use within URIs and attribute values. </span></div> <div class="tb" style="top:570px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2211" style="top:0px;left:189px;">provides basic facilities for string, number and boolean </span><span class="tf y2212" style="top:0px;left:4551px;">m</span><span class="tf y2212" style="top:0px;left:4715px;">a</span><span class="tf y2212" style="top:0px;left:4814px;">n</span><span class="tf y2212" style="top:0px;left:4919px;">i</span><span class="tf y2212" style="top:0px;left:4967px;">p</span><span class="tf y2212" style="top:0px;left:5073px;">u</span><span class="tf y2212" style="top:0px;left:5179px;">l</span><span class="tf y2212" style="top:0px;left:5227px;">a</span><span class="tf y2212" style="top:0px;left:5326px;">t</span><span class="tf y2212" style="top:0px;left:5402px;">i</span><span class="tf y2212" style="top:0px;left:5450px;">o</span><span class="tf y2212" style="top:0px;left:5553px;">n </span><span class="tf y2177" style="top:0px;left:5660px;">. </span></div> <div class="tb" style="top:703px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2241" style="top:0px;left:189px;">supports namespaces. </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="3"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/b117275622776d9df17fa24c9d6299e20e3c08be.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:68px; left:34px;"> <span class="tf y4816" style="top:0px;left:0px;">XPath 1.0 Data Model </span></div> <div class="tb" style="top:173px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4819" style="top:0px;left:189px;">can be derived from </span><span class="tf y4820" style="top:0px;left:1823px;">XML InfoSet </span><span class="tf y2177" style="top:0px;left:2947px;">. </span></div> <div class="tb" style="top:250px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4827" style="top:0px;left:189px;">XML document is viewed as a </span><span class="tf y2176" style="top:0px;left:2627px;">tree </span><span class="tf y2211" style="top:0px;left:2966px;">, containing different kinds of nodes. </span></div> <div class="tb" style="top:327px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4835" style="top:0px;left:189px;">kinds of nodes:</span><span class="tf y4836" style="top:0px;left:1396px;"> root,</span><span class="tf y4837" style="top:0px;left:1882px;"> </span><span class="tf y4838" style="top:0px;left:1962px;">element, text, attribute, namespace, processing instruction, com-</span><span class="tf y4839" style="top:276px;left:189px;">ment nodes. </span></div> <div class="tb" style="top:460px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4835" style="top:0px;left:189px;">imposes a document </span><span class="tf y2192" style="top:0px;left:1898px;">order </span><span class="tf y4849" style="top:0px;left:2415px;">defined on all nodes except attribute and namespace nodes </span><span class="tf y2179" style="top:276px;left:189px;">(order of occurence of element start-tags). </span></div> <div class="tb" style="top:592px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4839" style="top:0px;left:189px;">the root node is the </span><span class="tf y2176" style="top:0px;left:1823px;">first </span><span class="tf y4859" style="top:0px;left:2222px;">node. </span></div> <div class="tb" style="top:669px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2211" style="top:0px;left:189px;">the namespace nodes are defined to occur </span><span class="tf y2176" style="top:0px;left:3565px;">before </span><span class="tf y2211" style="top:0px;left:4164px;">the attribute nodes. </span></div> <div class="tb" style="top:746px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4839" style="top:0px;left:189px;">root and element nodes have an </span><span class="tf y4874" style="top:0px;left:2786px;">ordered list </span><span class="tf y2211" style="top:0px;left:3812px;">of children. </span></div> <div class="tb" style="top:823px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y4839" style="top:0px;left:189px;">an element node is the </span><span class="tf y2192" style="top:0px;left:2047px;">parent </span><span class="tf y4839" style="top:0px;left:2657px;">of the associated </span><span class="tf y2176" style="top:0px;left:4050px;">set </span><span class="tf y4885" style="top:0px;left:4365px;">of attribute/namespace nodes, </span><span class="tf y4886" style="top:276px;left:189px;">the attributes/namespaces </span><span class="tf y4887" style="top:276px;left:2334px;">are not children </span><span class="tf y4839" style="top:276px;left:3753px;">of the associated element node. </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="4"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/560e8dcd1ff9a4a94838d4eb45b309dfaa58a513.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:0px; left:0px;"> <span class="tf y7958" style="top:89px;left:170px;"><?xml version="1.0" encoding="iso-8859-1" ?> </span><span class="tf y7959" style="top:282px;left:170px;"><book> </span><span class="tf y7959" style="top:475px;left:243px;"><chapter> </span><span class="tf y7961" style="top:668px;left:316px;"><title>Various Fruits</title> </span><span class="tf y7959" style="top:861px;left:316px;"><para> </span><span class="tf y7963" style="top:1054px;left:390px;">The next chapters introduce different kinds of fruits, like </span><span class="tf y7964" style="top:1247px;left:390px;"><fruit figref="fr_virg">strawberries</fruit> or <fruit figref="apple">apples</fruit>. </span><span class="tf y7959" style="top:1440px;left:316px;"></para> </span><span class="tf y7959" style="top:1633px;left:243px;"></chapter> </span><span class="tf y7959" style="top:1826px;left:243px;"><chapter> </span><span class="tf y7968" style="top:2019px;left:316px;"><</span><span class="tf y7968" style="top:2019px;left:390px;">t</span><span class="tf y7968" style="top:2019px;left:463px;">i</span><span class="tf y7968" style="top:2019px;left:536px;">t</span><span class="tf y7968" style="top:2019px;left:609px;">l</span><span class="tf y7968" style="top:2019px;left:682px;">e</span><span class="tf y7968" style="top:2019px;left:755px;">></span><span class="tf y7968" style="top:2019px;left:828px;">S</span><span class="tf y7968" style="top:2019px;left:901px;">t</span><span class="tf y7968" style="top:2019px;left:974px;">r</span><span class="tf y7968" style="top:2019px;left:1047px;">a</span><span class="tf y7968" style="top:2019px;left:1120px;">w</span><span class="tf y7968" style="top:2019px;left:1193px;">b</span><span class="tf y7968" style="top:2019px;left:1267px;">e</span><span class="tf y7968" style="top:2019px;left:1340px;">r</span><span class="tf y7968" style="top:2019px;left:1413px;">r</span><span class="tf y7968" style="top:2019px;left:1486px;">i</span><span class="tf y7968" style="top:2019px;left:1559px;">e</span><span class="tf y7968" style="top:2019px;left:1632px;">s</span><span class="tf y7968" style="top:2019px;left:1705px;"><</span><span class="tf y7968" style="top:2019px;left:1778px;">/</span><span class="tf y7968" style="top:2019px;left:1851px;">t</span><span class="tf y7968" style="top:2019px;left:1924px;">i</span><span class="tf y7968" style="top:2019px;left:1997px;">t</span><span class="tf y7968" style="top:2019px;left:2070px;">l</span><span class="tf y7968" style="top:2019px;left:2144px;">e</span><span class="tf y7968" style="top:2019px;left:2217px;">> </span><span class="tf y7959" style="top:2212px;left:316px;"><para> </span><span class="tf y7963" style="top:2405px;left:390px;">stre[a]w berige; stre[a]w straw + berie berry; </span><span class="tf y7997" style="top:2598px;left:390px;">perhaps from the resemblance of the runners of the plant to straws. </span><span class="tf y7959" style="top:2791px;left:316px;"></para> </span><span class="tf y7959" style="top:2984px;left:316px;"><para> </span><span class="tf y8000" style="top:3177px;left:390px;">A fragrant edible berry, of </span><span class="tf y8001" style="top:3177px;left:2442px;">a delicious taste and commonly of a red colour. </span><span class="tf y7959" style="top:3370px;left:316px;"></para> </span><span class="tf y7959" style="top:3563px;left:316px;"><para> </span><span class="tf y7963" style="top:3756px;left:390px;">The common American strawberry is </span><span class="tf y8005" style="top:3949px;left:390px;"><figure caption="Fragaria virginiana" data="fr_virg.jpg" id="fr_virg">Fragaria virginiana</figure>, </span><span class="tf y8001" style="top:4142px;left:390px;">the European is </span><span class="tf y8007" style="top:4335px;left:390px;"><figure caption="Fragaria vesca" data="fr_vesca.jpg" id="fr_vesca">Fragaria vesca</figure>. </span><span class="tf y7959" style="top:4528px;left:316px;"></para> </span><span class="tf y7959" style="top:4721px;left:243px;"></chapter> </span><span class="tf y7959" style="top:4914px;left:170px;"></book> </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="5"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/9f3bbf56335709b154d92495ee582ce301c9ffea.png" width="1531" height="1060" alt="" /></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="6"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/e034f3fbca7c66f1837abbec64296973dd84515e.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:63px; left:34px;"> <span class="tf y10648" style="top:0px;left:0px;">XPath Expressions:</span><span class="tf y10649" style="top:0px;left:2603px;"> Syntactic</span><span class="tf y10650" style="top:0px;left:4007px;"> Building Blocks </span></div> <div class="tb" style="top:164px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2192" style="top:0px;left:189px;">primary </span><span class="tf y10656" style="top:0px;left:922px;">expressions: strings,</span><span class="tf y10657" style="top:0px;left:2545px;"> numbers, booleans, location paths, predicates, </span><span class="tf y10658" style="top:271px;left:189px;">calls, variable reference. </span></div> <div class="tb" style="top:291px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2176" style="top:0px;left:189px;">complex </span><span class="tf y10666" style="top:0px;left:955px;">expressions: unions,</span><span class="tf y2203" style="top:0px;left:2511px;"> filters, relational expressions. </span></div> <div class="tb" style="top:364px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y10673" style="top:0px;left:189px;">basic expression </span><span class="tf y2176" style="top:0px;left:1496px;">types </span><span class="tf y10675" style="top:0px;left:1948px;">: string,</span><span class="tf y10676" style="top:0px;left:2578px;"> number, boolean, node-set. </span></div> <div class="tb" style="top:436px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y10683" style="top:0px;left:189px;">expression </span><span class="tf y2176" style="top:0px;left:1044px;">evaluation </span><span class="tf y2211" style="top:0px;left:1983px;">done in a context, consisting of: </span></div> <div class="tb" style="top:500px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y4885" style="top:0px;left:203px;">the context </span><span class="tf y10692" style="top:0px;left:1160px;">node </span><span class="tf y2177" style="top:0px;left:1577px;">. </span></div> <div class="tb" style="top:563px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y4885" style="top:0px;left:203px;">the context </span><span class="tf y2176" style="top:0px;left:1160px;">position </span><span class="tf y2177" style="top:0px;left:1899px;">and </span><span class="tf y2176" style="top:0px;left:2248px;">size </span><span class="tf y2177" style="top:0px;left:2561px;">. </span></div> <div class="tb" style="top:627px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y2179" style="top:0px;left:203px;">a set of variable bindings. </span></div> <div class="tb" style="top:690px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y10715" style="top:0px;left:203px;">a function library. </span></div> <div class="tb" style="top:753px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y2179" style="top:0px;left:203px;">a set of namespace declarations in expression scope. </span></div> <div class="tb" style="top:826px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2177" style="top:0px;left:189px;">examples </span><span class="tf y10724" style="top:285px;left:274px;">– </span><span class="tf y10725" style="top:285px;left:452px;">’Markup-Sprachen und semi-strukturierte Daten </span><span class="tf y10726" style="top:285px;left:3377px;">’ </span></div> <div class="tb" style="top:930px; left:119px;"> <span class="tf y10724" style="top:0px;left:0px;">– </span><span class="tf y10733" style="top:0px;left:179px;">($x + $y) </span><span class="tf y10734" style="top:0px;left:834px;">∙ </span><span class="tf y10726" style="top:0px;left:923px;">2 </span><span class="tf y10736" style="top:0px;left:1045px;">> </span><span class="tf y10726" style="top:0px;left:1208px;">10.7 </span></div> <div class="tb" style="top:994px; left:119px;"> <span class="tf y10724" style="top:0px;left:0px;">– </span><span class="tf y10745" style="top:0px;left:179px;">//lecture[@name = ’Markup’ and contains(author,’Bry’)] </span></div> <div class="tb" style="top:164px; left:1368px;"> <span class="tf y2177" style="top:0px;left:0px;">function </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="7"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/5c75d35023edd314c3795915aacb6f236e27fcc3.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:60px; left:34px;"> <span class="tf y13270" style="top:0px;left:0px;">Location Paths:</span><span class="tf y13271" style="top:0px;left:2141px;"> The</span><span class="tf y13272" style="top:0px;left:2821px;"> MOST Important Constructs </span></div> <div class="tb" style="top:173px; left:34px;"> <span class="tf y13276" style="top:0px;left:0px;">A path is constructed from steps, which have: </span></div> <div class="tb" style="top:233px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13279" style="top:0px;left:339px;">an </span><span class="tf y13280" style="top:0px;left:551px;">axis </span><span class="tf y13281" style="top:0px;left:815px;">, which specifies the tree relationship between the nodes. </span></div> <div class="tb" style="top:293px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13279" style="top:0px;left:339px;">a </span><span class="tf y13288" style="top:0px;left:469px;">node </span><span class="tf y13281" style="top:0px;left:865px;">test, which specifies </span><span class="tf y13290" style="top:0px;left:2238px;">the name of the selected nodes. </span></div> <div class="tb" style="top:364px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13297" style="top:0px;left:339px;">zero or more </span><span class="tf y13298" style="top:0px;left:1229px;">predicates </span><span class="tf y13281" style="top:0px;left:1939px;">, which refine the set of nodes selected by the location step. </span></div> <div class="tb" style="top:434px; left:34px;"> <span class="tf y13279" style="top:0px;left:0px;">Examples: </span></div> <div class="tb" style="top:494px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13280" style="top:0px;left:339px;">child </span><span class="tf y13308" style="top:0px;left:668px;">::para </span></div> <div class="tb" style="top:554px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13280" style="top:0px;left:339px;">child </span><span class="tf y13279" style="top:0px;left:668px;">::figure[ </span><span class="tf y13280" style="top:0px;left:1175px;">attribute </span><span class="tf y13316" style="top:0px;left:1795px;">::id=”fr vesca”] </span></div> <div class="tb" style="top:625px; left:34px;"> <span class="tf y13278" style="top:0px;left:165px;">• </span><span class="tf y13280" style="top:0px;left:339px;">child </span><span class="tf y13279" style="top:0px;left:668px;">::*[position()=last()] </span></div> <div class="tb" style="top:695px; left:34px;"> <span class="tf y13328" style="top:0px;left:0px;">Abbreviated syntax: </span></div> <div class="tb" style="top:756px; left:67px;"> <span class="tf y13278" style="top:0px;left:0px;">• </span><span class="tf y13280" style="top:0px;left:174px;">@name </span><span class="tf y13332" style="top:0px;left:722px;">for </span><span class="tf y13333" style="top:0px;left:956px;">attribute::name </span></div> <div class="tb" style="top:816px; left:67px;"> <span class="tf y13278" style="top:0px;left:0px;">• </span><span class="tf y13298" style="top:0px;left:174px;">para[1] </span><span class="tf y13332" style="top:0px;left:721px;">for </span><span class="tf y13333" style="top:0px;left:955px;">child::para[position()=1] </span></div> <div class="tb" style="top:876px; left:67px;"> <span class="tf y13278" style="top:0px;left:0px;">• </span><span class="tf y13298" style="top:0px;left:174px;">.//para </span><span class="tf y13332" style="top:0px;left:747px;">for </span><span class="tf y13349" style="top:0px;left:981px;">s</span><span class="tf y13349" style="top:0px;left:1062px;">e</span><span class="tf y13349" style="top:0px;left:1143px;">l</span><span class="tf y13349" style="top:0px;left:1225px;">f</span><span class="tf y13349" style="top:0px;left:1306px;">:</span><span class="tf y13349" style="top:0px;left:1387px;">:</span><span class="tf y13349" style="top:0px;left:1468px;">n</span><span class="tf y13349" style="top:0px;left:1550px;">o</span><span class="tf y13349" style="top:0px;left:1631px;">d</span><span class="tf y13349" style="top:0px;left:1712px;">e</span><span class="tf y13349" style="top:0px;left:1793px;">(</span><span class="tf y13349" style="top:0px;left:1875px;">)</span><span class="tf y13349" style="top:0px;left:1956px;">/</span><span class="tf y13349" style="top:0px;left:2037px;">d</span><span class="tf y13349" style="top:0px;left:2118px;">e</span><span class="tf y13349" style="top:0px;left:2200px;">s</span><span class="tf y13349" style="top:0px;left:2281px;">c</span><span class="tf y13349" style="top:0px;left:2362px;">e</span><span class="tf y13349" style="top:0px;left:2443px;">n</span><span class="tf y13349" style="top:0px;left:2525px;">d</span><span class="tf y13349" style="top:0px;left:2606px;">a</span><span class="tf y13349" style="top:0px;left:2687px;">n</span><span class="tf y13349" style="top:0px;left:2768px;">t</span><span class="tf y13349" style="top:0px;left:2850px;">-</span><span class="tf y13349" style="top:0px;left:2931px;">o</span><span class="tf y13349" style="top:0px;left:3012px;">r</span><span class="tf y13349" style="top:0px;left:3094px;">-</span><span class="tf y13349" style="top:0px;left:3175px;">s</span><span class="tf y13349" style="top:0px;left:3256px;">e</span><span class="tf y13349" style="top:0px;left:3337px;">l</span><span class="tf y13349" style="top:0px;left:3419px;">f</span><span class="tf y13349" style="top:0px;left:3500px;">:</span><span class="tf y13349" style="top:0px;left:3581px;">:</span><span class="tf y13349" style="top:0px;left:3662px;">n</span><span class="tf y13349" style="top:0px;left:3744px;">o</span><span class="tf y13349" style="top:0px;left:3825px;">d</span><span class="tf y13349" style="top:0px;left:3906px;">e</span><span class="tf y13349" style="top:0px;left:3987px;">(</span><span class="tf y13349" style="top:0px;left:4069px;">)</span><span class="tf y13349" style="top:0px;left:4150px;">/</span><span class="tf y13349" style="top:0px;left:4231px;">c</span><span class="tf y13349" style="top:0px;left:4312px;">h</span><span class="tf y13349" style="top:0px;left:4394px;">i</span><span class="tf y13349" style="top:0px;left:4475px;">l</span><span class="tf y13349" style="top:0px;left:4556px;">d</span><span class="tf y13349" style="top:0px;left:4637px;">:</span><span class="tf y13349" style="top:0px;left:4719px;">:</span><span class="tf y13349" style="top:0px;left:4800px;">p</span><span class="tf y13349" style="top:0px;left:4881px;">a</span><span class="tf y13349" style="top:0px;left:4962px;">r</span><span class="tf y13349" style="top:0px;left:5044px;">a </span></div> <div class="tb" style="top:936px; left:67px;"> <span class="tf y13278" style="top:0px;left:0px;">• </span><span class="tf y13280" style="top:0px;left:174px;">. </span><span class="tf y13332" style="top:0px;left:292px;">for </span><span class="tf y13333" style="top:0px;left:526px;">self::node() </span></div> <div class="tb" style="top:1006px; left:67px;"> <span class="tf y13278" style="top:0px;left:0px;">• </span><span class="tf y13298" style="top:0px;left:174px;">../para </span><span class="tf y13332" style="top:0px;left:709px;">for </span><span class="tf y13333" style="top:0px;left:943px;">parent::node()/child::para </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="8"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/38738464c674e18b49043868e15ea232ee558b41.png" width="1531" height="1060" alt="" /></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="9"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/ca22cba9e18330f9e597b89b7a35e000f3485917.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:68px; left:34px;"> <span class="tf y15204" style="top:0px;left:0px;">Example Break (1) - Testing Location Paths </span></div> <div class="tb" style="top:295px; left:34px;"> <span class="tf y15206" style="top:0px;left:0px;">We use: </span></div> <div class="tb" style="top:372px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y15209" style="top:0px;left:189px;">a graphical test environment for XPath expressions, named XPath Tester. </span></div> <div class="tb" style="top:449px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y15213" style="top:0px;left:189px;">Command line for XPath Tester 1.1: </span><span class="tf y15214" style="top:0px;left:3143px;">java -jar xpathtester_1 1.jar </span><span class="tf y2177" style="top:0px;left:6013px;">. </span><span class="tf y15216" style="top:0px;left:5419px;">_ </span></div> <div class="tb" style="top:526px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2179" style="top:0px;left:189px;">downloadable from 5Sight: </span><span class="tf y15224" style="top:276px;left:189px;">h</span><span class="tf y15224" style="top:276px;left:287px;">t</span><span class="tf y15224" style="top:276px;left:386px;">t</span><span class="tf y15224" style="top:276px;left:485px;">p</span><span class="tf y15224" style="top:276px;left:584px;">:</span><span class="tf y15224" style="top:276px;left:683px;">/</span><span class="tf y15224" style="top:276px;left:782px;">/</span><span class="tf y15224" style="top:276px;left:880px;">w</span><span class="tf y15224" style="top:276px;left:979px;">w</span><span class="tf y15224" style="top:276px;left:1078px;">w</span><span class="tf y15224" style="top:276px;left:1177px;">.</span><span class="tf y15224" style="top:276px;left:1276px;">f</span><span class="tf y15224" style="top:276px;left:1375px;">i</span><span class="tf y15224" style="top:276px;left:1473px;">v</span><span class="tf y15224" style="top:276px;left:1572px;">e</span><span class="tf y15224" style="top:276px;left:1671px;">s</span><span class="tf y15224" style="top:276px;left:1770px;">i</span><span class="tf y15224" style="top:276px;left:1869px;">g</span><span class="tf y15224" style="top:276px;left:1968px;">h</span><span class="tf y15224" style="top:276px;left:2066px;">t</span><span class="tf y15224" style="top:276px;left:2165px;">.</span><span class="tf y15224" style="top:276px;left:2264px;">c</span><span class="tf y15224" style="top:276px;left:2363px;">o</span><span class="tf y15224" style="top:276px;left:2462px;">m</span><span class="tf y15224" style="top:276px;left:2561px;">/</span><span class="tf y15224" style="top:276px;left:2659px;">d</span><span class="tf y15224" style="top:276px;left:2758px;">o</span><span class="tf y15224" style="top:276px;left:2857px;">w</span><span class="tf y15224" style="top:276px;left:2956px;">n</span><span class="tf y15224" style="top:276px;left:3055px;">l</span><span class="tf y15224" style="top:276px;left:3154px;">o</span><span class="tf y15224" style="top:276px;left:3252px;">a</span><span class="tf y15224" style="top:276px;left:3351px;">d</span><span class="tf y15224" style="top:276px;left:3450px;">s</span><span class="tf y15224" style="top:276px;left:3549px;">/</span><span class="tf y15224" style="top:276px;left:3648px;">x</span><span class="tf y15224" style="top:276px;left:3747px;">p</span><span class="tf y15224" style="top:276px;left:3845px;">a</span><span class="tf y15224" style="top:276px;left:3944px;">t</span><span class="tf y15224" style="top:276px;left:4043px;">h</span><span class="tf y15224" style="top:276px;left:4142px;">t</span><span class="tf y15224" style="top:276px;left:4241px;">e</span><span class="tf y15224" style="top:276px;left:4340px;">s</span><span class="tf y15224" style="top:276px;left:4439px;">t</span><span class="tf y15224" style="top:276px;left:4537px;">e</span><span class="tf y15224" style="top:276px;left:4636px;">r</span><span class="tf y15224" style="top:276px;left:4735px;">.</span><span class="tf y15224" style="top:276px;left:4834px;">a</span><span class="tf y15224" style="top:276px;left:4933px;">s</span><span class="tf y15224" style="top:276px;left:5032px;">p </span><span class="tf y2177" style="top:276px;left:5137px;">. </span></div> <div class="tb" style="top:658px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2177" style="top:0px;left:189px;">Prerequisites: </span></div> <div class="tb" style="top:724px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y15333" style="top:0px;left:203px;">Java Virtual </span><span class="tf y2179" style="top:0px;left:1220px;">Machine, e.g. jdk 1.2 or higher. </span></div> <div class="tb" style="top:791px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y2175" style="top:0px;left:203px;">a </span><span class="tf y15333" style="top:0px;left:356px;">Java-based XPath evaluator, e.g. Xalan, Saxon, XT. </span></div> <div class="tb" style="top:857px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y15333" style="top:0px;left:203px;">a Java-based </span><span class="tf y2179" style="top:0px;left:1278px;">XML parser, e.g. Xerces, XML4Java, Alfred. </span></div> <span class="fklnk" rel="*http://www.fivesight.com|downloads|xpathtester.asp" style="top:593px;left:101px;width:991px;height:35px;"></span></div><div class="pg y1" style="width:1531px;height:1060px;" nb="10"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/5c21bd9a15d289a6573e56124478e952cb2881af.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:68px; left:34px;"> <span class="tf y17562" style="top:0px;left:0px;">Core Function Library:</span><span class="tf y17563" style="top:0px;left:3035px;"> Node-Set</span><span class="tf y17564" style="top:0px;left:4470px;"> Functions </span></div> <div class="tb" style="top:173px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y17569" style="top:0px;left:189px;">number </span><span class="tf y2176" style="top:0px;left:867px;">last() </span><span class="tf y2179" style="top:276px;left:189px;">returns the context size from the expression evaluation context. </span></div> <div class="tb" style="top:306px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y17569" style="top:0px;left:189px;">number </span><span class="tf y2176" style="top:0px;left:867px;">position() </span><span class="tf y2179" style="top:276px;left:189px;">returns </span><span class="tf y2203" style="top:276px;left:799px;">the context position from the expression evaluation context. </span></div> <div class="tb" style="top:438px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y17569" style="top:0px;left:189px;">number </span><span class="tf y2176" style="top:0px;left:867px;">count(node-set) </span><span class="tf y2211" style="top:276px;left:189px;">returns the number of nodes in the argument node-set. </span></div> <div class="tb" style="top:570px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y17595" style="top:0px;left:189px;">node-set </span><span class="tf y2176" style="top:0px;left:930px;">id(object) </span><span class="tf y15333" style="top:276px;left:189px;">selects elements by their unique ID, as declared in DTD. </span></div> <div class="tb" style="top:703px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y17595" style="top:0px;left:189px;">string </span><span class="tf y2176" style="top:0px;left:713px;">name(node-set?) </span><span class="tf y2177" style="top:0px;left:2175px;">, </span><span class="tf y17595" style="top:0px;left:2291px;">string </span><span class="tf y2176" style="top:0px;left:2815px;">local-name(node-set?) </span><span class="tf y2177" style="top:0px;left:4743px;">, </span><span class="tf y17595" style="top:276px;left:189px;">string </span><span class="tf y2212" style="top:276px;left:713px;">n</span><span class="tf y2212" style="top:276px;left:819px;">a</span><span class="tf y2212" style="top:276px;left:918px;">m</span><span class="tf y2212" style="top:276px;left:1081px;">e</span><span class="tf y2212" style="top:276px;left:1177px;">s</span><span class="tf y2212" style="top:276px;left:1257px;">p</span><span class="tf y2212" style="top:276px;left:1362px;">a</span><span class="tf y2212" style="top:276px;left:1461px;">c</span><span class="tf y2212" style="top:276px;left:1553px;">e</span><span class="tf y2212" style="top:276px;left:1649px;">-</span><span class="tf y2212" style="top:276px;left:1718px;">u</span><span class="tf y2212" style="top:276px;left:1824px;">r</span><span class="tf y2212" style="top:276px;left:1894px;">i</span><span class="tf y2212" style="top:276px;left:1942px;">(</span><span class="tf y2212" style="top:276px;left:2023px;">n</span><span class="tf y2212" style="top:276px;left:2128px;">o</span><span class="tf y2212" style="top:276px;left:2238px;">d</span><span class="tf y2212" style="top:276px;left:2343px;">e</span><span class="tf y2212" style="top:276px;left:2439px;">-</span><span class="tf y2212" style="top:276px;left:2509px;">s</span><span class="tf y2212" style="top:276px;left:2588px;">e</span><span class="tf y2212" style="top:276px;left:2684px;">t</span><span class="tf y2212" style="top:276px;left:2760px;">?</span><span class="tf y2212" style="top:276px;left:2858px;">) </span><span class="tf y17634" style="top:553px;left:189px;">returns the expanded/local name/namespace URI </span><span class="tf y17635" style="top:553px;left:4190px;">of the node in the argument node-set </span><span class="tf y2211" style="top:829px;left:189px;">that is first in document order. </span></div> </div><div class="pg y1" style="width:1531px;height:1060px;" nb="11"><div style="position:absolute;top:0px;left:0px;"><img src="http://dimg.uscri.be/1782599185df330c311a60bf7897439320d44752.png" width="1531" height="1060" alt="" /></div> <div class="tb" style="top:68px; left:34px;"> <span class="tf y19411" style="top:0px;left:0px;">Example Break (2) - Testing Node-Set Functions </span></div> <div class="tb" style="top:295px; left:34px;"> <span class="tf y15206" style="top:0px;left:0px;">We use: </span></div> <div class="tb" style="top:372px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y15209" style="top:0px;left:189px;">a graphical test environment for XPath expressions, named XPath Tester. </span></div> <div class="tb" style="top:449px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y15213" style="top:0px;left:189px;">Command line for XPath Tester 1.1: </span><span class="tf y19421" style="top:0px;left:3143px;">java -jar xpathtester_1_1.jar </span><span class="tf y2177" style="top:0px;left:6013px;">. </span></div> <div class="tb" style="top:526px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2179" style="top:0px;left:189px;">downloadable from 5Sight: </span><span class="tf y15224" style="top:276px;left:189px;">h</span><span class="tf y15224" style="top:276px;left:287px;">t</span><span class="tf y15224" style="top:276px;left:386px;">t</span><span class="tf y15224" style="top:276px;left:485px;">p</span><span class="tf y15224" style="top:276px;left:584px;">:</span><span class="tf y15224" style="top:276px;left:683px;">/</span><span class="tf y15224" style="top:276px;left:782px;">/</span><span class="tf y15224" style="top:276px;left:880px;">w</span><span class="tf y15224" style="top:276px;left:979px;">w</span><span class="tf y15224" style="top:276px;left:1078px;">w</span><span class="tf y15224" style="top:276px;left:1177px;">.</span><span class="tf y15224" style="top:276px;left:1276px;">f</span><span class="tf y15224" style="top:276px;left:1375px;">i</span><span class="tf y15224" style="top:276px;left:1473px;">v</span><span class="tf y15224" style="top:276px;left:1572px;">e</span><span class="tf y15224" style="top:276px;left:1671px;">s</span><span class="tf y15224" style="top:276px;left:1770px;">i</span><span class="tf y15224" style="top:276px;left:1869px;">g</span><span class="tf y15224" style="top:276px;left:1968px;">h</span><span class="tf y15224" style="top:276px;left:2066px;">t</span><span class="tf y15224" style="top:276px;left:2165px;">.</span><span class="tf y15224" style="top:276px;left:2264px;">c</span><span class="tf y15224" style="top:276px;left:2363px;">o</span><span class="tf y15224" style="top:276px;left:2462px;">m</span><span class="tf y15224" style="top:276px;left:2561px;">/</span><span class="tf y15224" style="top:276px;left:2659px;">d</span><span class="tf y15224" style="top:276px;left:2758px;">o</span><span class="tf y15224" style="top:276px;left:2857px;">w</span><span class="tf y15224" style="top:276px;left:2956px;">n</span><span class="tf y15224" style="top:276px;left:3055px;">l</span><span class="tf y15224" style="top:276px;left:3154px;">o</span><span class="tf y15224" style="top:276px;left:3252px;">a</span><span class="tf y15224" style="top:276px;left:3351px;">d</span><span class="tf y15224" style="top:276px;left:3450px;">s</span><span class="tf y15224" style="top:276px;left:3549px;">/</span><span class="tf y15224" style="top:276px;left:3648px;">x</span><span class="tf y15224" style="top:276px;left:3747px;">p</span><span class="tf y15224" style="top:276px;left:3845px;">a</span><span class="tf y15224" style="top:276px;left:3944px;">t</span><span class="tf y15224" style="top:276px;left:4043px;">h</span><span class="tf y15224" style="top:276px;left:4142px;">t</span><span class="tf y15224" style="top:276px;left:4241px;">e</span><span class="tf y15224" style="top:276px;left:4340px;">s</span><span class="tf y15224" style="top:276px;left:4439px;">t</span><span class="tf y15224" style="top:276px;left:4537px;">e</span><span class="tf y15224" style="top:276px;left:4636px;">r</span><span class="tf y15224" style="top:276px;left:4735px;">.</span><span class="tf y15224" style="top:276px;left:4834px;">a</span><span class="tf y15224" style="top:276px;left:4933px;">s</span><span class="tf y15224" style="top:276px;left:5032px;">p </span><span class="tf y2177" style="top:276px;left:5137px;">. </span></div> <div class="tb" style="top:658px; left:64px;"> <span class="tf y2174" style="top:0px;left:0px;">• </span><span class="tf y2177" style="top:0px;left:189px;">Prerequisites: </span></div> <div class="tb" style="top:724px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y15333" style="top:0px;left:203px;">Java Virtual </span><span class="tf y2179" style="top:0px;left:1220px;">Machine, e.g. jdk 1.2 or higher. </span></div> <div class="tb" style="top:791px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y2175" style="top:0px;left:203px;">a </span><span class="tf y15333" style="top:0px;left:356px;">Java-based XPath evaluator, e.g. Xalan, Saxon, XT. </span></div> <div class="tb" style="top:857px; left:114px;"> <span class="tf y10690" style="top:0px;left:0px;">– </span><span class="tf y15333" style="top:0px;left:203px;">a Java-based </span><span class="tf y2179" style="top:0px;left:1278px;">XML parser, e.g. Xerces, XML4Java, Alfred. </span></div> <span class="fklnk" rel="*http://www.fivesight.com|downloads|xpathtester.asp" style="top:593px;left:101px;width:991px;height:35px;"></span></div> </div> </div> </div> <a href="#" class="button button--third-simplified button--xs-mixed js-collapse-btn flex-row-direction-default"> <span>Voir</span> <img src="/Content/imgv6/icons/arrowsNavigation/plus.svg" class="is-toggle-icon" alt="icon more" /> </a> </div> </div> </div> </div> </div> </div> </div> </div> </div> <div class="container--full bg--05"> <div class="container--margin container--margin--large "> <div class="pageProduct__section-2"> <div class="container__col-12-center container__col-sm-12-end"> <div class="input-text__helper-content input-text__helper-content--primary input-text__helper-content--large is-hidden-none"> <img src="/Content/imgv6/icons/other/circle-exclamation-solid.svg" class="input-text__helper-icon input-text__helper-icon--primary" alt="icon warning" /> <span class="input-text__helper-text input-text__helper-text--primary "> <span> <a href="/Account/Login/LogOn?returnUrl=%2FProduct%2FReport%2F543009" class="js-modal-btn button__link" data-callback="reportPublication" > Signaler un problème </a> </span> </span> </div> </div> </div> </div> </div> <aside id="modal_ajax" class="modal__overlay js-overlay" aria-hidden="true" role="dialog" aria-labelledby="titlemodal"> <div class="modal__container js-modal-stop"> <button type="button" class="modal__close js-modal-close"> <img src="/Content/imgv6/icons/arrowsNavigation/close.svg" alt="Alternate Text" /> </button> <div class="js-modal-content"> </div> </div> </aside> <aside id="modal_ajax" class="modal__overlay js-overlay" aria-hidden="true" role="dialog" aria-labelledby="titlemodal"> <div class="modal__container js-modal-stop"> <button type="button" class="modal__close js-modal-close"> <img src="/Content/imgv6/icons/arrowsNavigation/close.svg" alt="Alternate Text" /> </button> <div class="js-modal-content"> </div> </div> </aside> <aside id="productDownloadPopin" class="modal__overlay js-overlay" aria-hidden="true" role="dialog" aria-labelledby="titlemodal"> <div class="modal__container js-modal-stop"> <button type="button" class="modal__close js-modal-close"> <img src="/Content/imgv6/icons/arrowsNavigation/close.svg" alt="icon arrow" /> </button> <div class="modal__wrapper "> <form action="/Product/Download/543009?embed=False" method="get"> <h2 class="modal__header" id="titlemodal"> Formats disponibles</h2> <div class="modal__content scrollbar"> <div class="container__row"> <div class="container__col-12"> <div class="form__item"> <div class="form__content"> <div class="input-radio"> <input checked="checked" class="input-radio__btn" id="448f9718-f64d-49cd-bd68-7c481bc754b0_format_PDF" name="format" type="radio" value="1" /> <label class="input-radio__label PDF" for="448f9718-f64d-49cd-bd68-7c481bc754b0_format_PDF" tabindex="1">Format PDF</label> </div> </div> </div> </div> </div> <div class="modal__footer "> <input id="product-buy-btn" class="button button--primary button--sm-text button--wrap tracking-dl-register" type="submit" value="Télécharger" /> </div> </div> </form> </div> </div> </aside> <div> <!-- suggests --> <section class="invisible js-loading-effect-container position--relative" id="show-similar-products" data-remoteurl="/ProductPage/RetrieveSimilarProductsAsync?productId=543009"> <div class="loading-effect loading-effect--thumbnail js-loading-effect"> <div class="loading-effect__margin loading-effect__margin--large"> <div class="loading-effect__box loading-effect__box--title"></div> <div class="loading-effect__box loading-effect__box--slider"></div> </div> </div> <div class="container--full bg--07 js-loading-effect-content layoutSliderThumbnail__section-selections--productPage"> <div class="container--margin container--margin--large"> <div class="layoutSliderThumbnail__section-selections"> <div class="container__row"> <div class="container__col-12 tracking-suggest js-suggestion"> </div> </div> </div> </div> </div> </section> </div> </div> <footer id="footer" class="footer"> <div class="footer__spacer"></div> <div class="footer__bg-header"> <div class="container--margin container--margin--onlyExtremityPage"> <div class="footer__header"> <div class="footer__app"> <a href="https://play.google.com/store/apps/details?id=youscribe.mobileapp" target="_blank"> <img src="/Content/imgv6/logos/iconsApp/playstore-fr_LightMode.svg" class="footer__app-logo js-img-switch" alt="playstore" data-lightmode="/Content/imgv6/logos/iconsApp/playstore-fr_LightMode.svg" data-darkmode="/Content/imgv6/logos/iconsApp/playstore-fr_DarkMode.svg" /> </a> <a href="https://itunes.apple.com/us/app/youscribe/id863904637" target="_blank"> <img src="/Content/imgv6/logos/iconsApp/appstore-fr_LightMode.svg" class="footer__app-logo js-img-switch" alt="appstore" data-lightmode="/Content/imgv6/logos/iconsApp/appstore-fr_LightMode.svg" data-darkmode="/Content/imgv6/logos/iconsApp/appstore-fr_DarkMode.svg" /> </a> </div> <div class="footer__social-network"> <a href="https://www.facebook.com/YouScribe.YS/" target="_blank" class="button button--business button--lg-icon"> <img src="/Content/imgv6/icons/brands/facebook-f-brands-solid.svg" alt="icon facebook" /> </a> <a href="https://twitter.com/YouScribe_YS" target="_blank" class="button button--business button--lg-icon"> <img src="/Content/imgv6/icons/brands/x-twitter-brands-solid.svg" alt="icon X" /> </a> <a href="https://www.instagram.com/youscribe/" target="_blank" class="button button--business button--lg-icon"> <img src="/Content/imgv6/icons/brands/instagram-brands-solid.svg" alt="icon instagram" /> </a> <a href="https://www.youtube.com/channel/UCp174vsMNQiotF4rM3za2QQ" target="_blank" class="button button--business button--lg-icon"> <img src="/Content/imgv6/icons/brands/youtube-brands-solid.svg" alt="icon youtube" /> </a> <a href="https://www.tiktok.com/@youscribe.officiel?_t=8llSboCelaj&_r=1 target="_blank" class="button button--business button--md-icon"> <img src="/Content/imgv6/icons/brands/tiktok-brands-solid.svg" alt="icon titok" /> </a> </div> </div> </div> </div> <div class="footer__bg-main"> <div class="container--margin container--margin--onlyExtremityPage "> <div class="footer__main"> <div class="footer__logo-container"> <img src="/Content/imgv6/logos/logoFooter/logoFooterLight.png" class="footer__logo js-img-switch" data-lightmode="/Content/imgv6/logos/logoFooter/logoFooterLight.png" data-darkmode="/Content/imgv6/logos/logoFooter/logoFooterDark.png" alt="logo youscribe footer" /> </div> <div class="container__row"> <div class="container__col-12 container__col-sm-6 container__col-md-3 footer__category"> <h3 class="footer__title"> YouScribe </h3> <ul class="footer__list"> <li class="footer__item"> <a href="/Static?name=about" class="footer__link"> Qui sommes-nous ? </a> </li> <li class="footer__item"> <a href="/apps" class="footer__link"> L'application mobile </a> </li> <li class="footer__item"> <a href="/Static/Faq" class="footer__link"> Questions fréquentes </a> </li> <li class="footer__item"> <a href="/press-youscribe/" class="footer__link"> La presse en parle </a> </li> <li class="footer__item"> <a href="/livreblanc/" class="footer__link"> Livre Blanc 2024 </a> </li> <li class="footer__item"> <a href="/Contact/Contact" class="footer__link"> Nous contacter </a> </li> </ul> </div> <div class="container__col-12 container__col-sm-6 container__col-md-3 footer__category"> <h3 class="footer__title"> Le catalogue </h3> <ul class="footer__list"> <li class="footer__item"> <a href="/catalogue/ebooks/" class="footer__link"> Ebooks </a> </li> <li class="footer__item"> <a href="/catalogue/livres-audio/" class="footer__link"> Livres audio </a> </li> <li class="footer__item"> <a href="/catalogue/presse/" class="footer__link"> Presse </a> </li> <li class="footer__item"> <a href="/catalogue/podcasts/" class="footer__link"> Podcasts </a> </li> <li class="footer__item"> <a href="/catalogue/bd/" class="footer__link"> BD </a> </li> <li class="footer__item"> <a href="/catalogue/documents/" class="footer__link"> Documents </a> </li> <li class="footer__item"> <a href="/education" class="footer__link"> Scolaire </a> </li> <li class="footer__item"> <a href="/catalogue" class="footer__link"> Thématiques </a> </li> </ul> </div> <div class="container__col-12 container__col-sm-6 container__col-md-3 footer__category"> <h3 class="footer__title"> Le service </h3> <ul class="footer__list"> <li class="footer__item"> <a href="/abo" class="footer__link"> Découvrir les offres </a> </li> <li class="footer__item"> <a href="/publier" class="footer__link"> Publier vos documents </a> </li> <li class="footer__item"> <a href="/professionnels" class="footer__link"> Offres partenaires </a> </li> <li class="footer__item"> <a href="/Contact/Publisher" class="footer__link"> Offres éditeurs </a> </li> <li class="footer__item"> <a href="/abo/code" class="footer__link"> Vous avez un code privilège ? </a> </li> </ul> </div> <div class="container__col-12 container__col-sm-6 container__col-md-3 footer__category"> <h3 class="footer__title"> Les conditions </h3> <ul class="footer__list"> <li class="footer__item"> <a href="/Static?name=author" class="footer__link"> Respect du droit d'auteur </a> </li> <li class="footer__item"> <a href="/Static?name=cgu" class="footer__link"> Conditions générales d'utilisation </a> </li> <li class="footer__item"> <a href="/Static?name=cgv" class="footer__link"> Conditions générales de vente </a> </li> <li class="footer__item"> <a href="/Static?name=charte" class="footer__link"> Charte de données personnelles </a> </li> <li class="footer__item"> <a href="/Static?name=terms" class="footer__link"> Mentions légales </a> </li> <li class="footer__item"> <a class="footer__link" href="javascript:openAxeptioCookies()">Confidentialité</a> </li> </ul> </div> </div> <div class="container__row margin__top--1"> <div class="container__col-12-center"> <p class="footer__text-small"> © 2010-2025 YouScribe</p> </div> </div> <div class="container__row margin__top--1"> <div class="container__col-12-center "> <div class="flex--row gap--5"> <a href="https://www.youscribe.com/catalogue/livres-audio/sante-et-bien-etre/developpement-personnel/" class="footer__link-small"> Livre audio en ligne - Développement personnel </a> <a href="https://www.youscribe.com/catalogue/ebooks/" class="footer__link-small"> Livre en ligne </a> <a href="/plan/catalogue/" class="footer__link-small"> Tout le catalogue </a> <a href="/plan/interets/" class="footer__link-small"> Tous les Intérêts </a> </div> </div> </div> </div> </footer> </div> <div class="thumbnail__overlay"> <div class="thumbnail__overlay-wrapper"> <div class="thumbnail__overlay-btn-close js-thumbnail-overlay"> <img src="/Content/imgv6/icons/arrowsNavigation/close.svg" class="thumbnail__icon-close" alt="Alternate Text" /> </div> <div class="thumbnail__overlay-content"> <!--<div class="thumbnail__overlay-wrapper-cover"> <picture>--> <!--<img src="data:," id="overlay-cover" class="thumbnail__cover" alt="cover default" /> </picture> </div>--> <div class="thumbnail__wrapper-column"> <div class="thumbnail__wrapper-category"> <div class="thumbnail__category"> <div class="thumbnail__wrapper-icon-category"> <img src="data:," id="overlay-categoryIcon" class="thumbnail__icon-category" alt="Category" /> </div> <p id="overlay-category" class="thumbnail__text-category"></p> </div> <p id="overlay-thematic" class="thumbnail__thematic"></p> </div> <div class="thumbnail__wrapper-infos"> <p id="overlay-title" class="thumbnail__title"></p> <p id="overlay-author" class="thumbnail__author"></p> <div class="thumbnail__infos"> <div class="thumbnail__info1"> <img src="data:," id="overlay-durationIcon" class="thumbnail__info-icon" alt="Book" /> <p id="overlay-duration" class="thumbnail__info-text"></p> </div> <div class="thumbnail__info2"> <img src="data:," id="overlay-langageIcon" class="thumbnail__info-icon" alt="Book" /> <p id="overlay-langage" class="thumbnail__info-text"></p> </div> </div> </div> <div class="thumbnail__wrapper-description"> <p id="overlay-description" class="thumbnail__description"> </p> </div> </div> <div class="thumbnail__wrapper-btns"> <div class="thumbnail__wrapper-btns-row"> <a href="" id="ctaliseuse" class="button button--primary button--lg-mixed button--auto-layout"> <img src="/Content/imgv6/icons/other/circle-play-regular.svg" alt="icon play" /> <span id="ctatextliseuse"></span> </a> </div> <a href="" id="ctaproduit" class="button button--secondary button--lg-mixed button--auto-layout"> <img src="/Content/imgv6/icons/other/circle-info-regular.svg" alt="icon play" /> <span>Infos</span> </a> </div> </div> </div> </div> <script type="text/javascript"> var IsAuthenticated = false; </script> <script type="text/javascript"> var ResourcesYouscribe = { //HOME homeOnBoardingStep1Part1: "Bienvenue à toi ", homeOnBoardingStep1Part2: "nouveau YouScribeur !", homeOnBoardingStep1Part3: "Première visite ? Clique sur suivant si tu veux devenir un YouScribeur accompli !", homeOnBoardingStep2Part1: "Découvre notre catalogue !", homeOnBoardingStep2Part2: "Livre, Presse, Audiobook ou BD ? Que liras-tu en premier ?", homeOnBoardingStep3: "Tu écris et aimerais être lu par tous nos YouScribeurs ? Découvre la fonction publier et lance peut-être ta carrière !", homeOnBoardingStep4: "Clique ici pour rechercher un titre par ouvrage, mot-clé, auteur ou titre.", homeOnBoardingStep5: "Ici tu peux accéder à tes informations, modifier ton profil, retrouver tes sélections, tes ouvrages favoris et tes marque-pages en un clic.", homeOnBoardingStep6Part1: "Bravo !", homeOnBoardingStep6Part2: "YouScribe n’a plus aucun secret pour toi !", homeOnBoardingStep6Part3: "Découvre dès maintenant nos coups de coeur du moment ou explore notre vaste catalogue.", homeOnBoardingStep6Part4: "Bonnes lectures ! ", //Reader and Readium readerOnBoardingStep1Part1: "C'est un très bon choix.", readerOnBoardingStep1Part2: "Si tu souhaites découvrir comment utiliser notre liseuse optimisée, c'est par ici !", readerOnBoardingStep2: "Avec cet outil tu peux naviguer entre les chapitres avec la table des matières.", readerOnBoardingStep2Part2: "Suivre cet éditeur si tu souhaites recevoir les alertes pour les nouveaux produits", readerOnBoardingStep3: "Avec le Marque-Page tu peux enregistrer un passage et le retrouver dans le menu", readerOnBoardingStep4: "Les options d’affichages te permettent de changer la taille des caractères, la police d’écriture et les dimensions de pages.", readerOnBoardingStep5: "Pour signaler un problème d’affichage, clique sur ce bouton et contacte-nous.", readerOnBoardingStep6Part1: "Très bonne lecture !", readerOnBoardingStep6Part2: "Tu as désormais atteint le niveau ", readerOnBoardingStep6Part3: "YouScribeur Junior ", readerOnBoardingStep6Part4: "en ouvrant ta première liseuse.", // Publish publishOnBoardingStep1Part1: "Tu cherches à publier ton premier document ?", publishOnBoardingStep1Part2: "C’est par ici que ça se passe !", publishOnBoardingStep2: "Choisis ici le fichier que tu souhaites publier.", publishOnBoardingStep3: "Ajoute une thématique et des mots clés pour trouver ton ouvrage plus facilement.", publishOnBoardingStep4: "Pense bien à choisir tes options de partage.", publishOnBoardingStep5Part1: "Attention !", publishOnBoardingStep5Part2: "Tu ne peux publier que des documents conformes au droit d'auteur.", publishOnBoardingStep6Part1: "Prouve-nous que tu n'es pas un robot et clique sur « Publier »", publishOnBoardingStep6Part2: "Et voilà ! Ton document sera intégré très rapidement.", // Button buttonOnBoardingStart: "Commencer", buttonOnBoardingCancel: "Annuler", buttonOnBoardingNext: "Suivant", buttonOnBoardingBack: "Retour", buttonOnBoardingDone: "Terminer", } </script> <script type="text/javascript"> var ga = undefined; var ControllerOptions = { productId: 543009, platform: 'Desktop', trackTheme: 99 }; window.StartController = function(require) { var PageController = require('Controller/Product/Page'); new PageController(ControllerOptions); }; window.TrackingContext = { RegisterPageType: 'Product', ProductId: 543009 }; window.onload = () => { $(".external-content a").attr("target", "_blank").attr("rel", "noreferrer"); $(".js-dropdown-follow").click(function () { $(".dropdownFollow").toggle(); }); $(document).click(function (event) { //if you click on anything except the modal itself or the "open modal" link, close the modal if (!$(event.target).closest(".dropdownFollow,.js-dropdown-follow").length) { $("body").find(".dropdownFollow").css({ "display": "none" }); } }); } </script> <script src="/Scripts-Build/Modules/Common/jquery.min.js"></script> <script src="//ajax.aspnetcdn.com/ajax/jquery.templates/beta1/jquery.tmpl.min.js"></script> <script src="/Scripts-Build/require.js"></script> <script type="text/javascript"> requirejs.config({urlArgs: 'v=23495', waitSeconds: 30, baseUrl: '/Scripts-Build/', packages: [ { name: 'Modules/Common', location: 'Modules/Common' }]}); require(["Modules/Common"], function () { require(["require", "Controller/Product/Page"], window.StartController); }); </script> <script type="application/ld+json"> { "@context": "https://schema.org/", "type": "Book", "@id": "https://www.preprod2.youscribe.com/catalogue/documents/ressources-professionnelles/informatique/xpath-1-0-tutorial-543009", "image": "//img.uscri.be/pth/1e9b26874087fed37118ac722aba7207d398e422", "abridged": "", "isbn": "", "author": "Dan Olteanu", "description": "Markup Languages and Semistructured Data - SS’02http://www.pms.informatik.uni-muenchen.de/lehre/markupsemistrukt/02ss/XPath 1.0 Tutorial28th of May, 2002Dan OlteanuXPath 1.0 - W3C Recommendation language for addressing and matching parts of an XML document. designed to be used standalone, but also by XPointer, XSLT, XQuery. uses a compact, non-XML format to facilitate use within URIs and attribute values. provides basic facilities for string, number and boolean manipulation. supports namespaces.XPath 1.0 Data Model can be derived from XML InfoSet. XML document is viewed as a tree, containing di erent kinds of nodes. kinds of nodes: root, element, text, attribute, namespace, processing instruction, com-ment nodes. imposes a document order de ned on all nodes except attribute and namespace nodes(order of occurence of element start-tags). the root node is the rst node. the namespace nodes are de ned to occur before the attribute nodes. root and element nodes have an ordered list of children. an element node is the parent of the associated set of attribute/namespace nodes,the attributes/namespaces are not children of the associated element node.Various FruitsThe next chapters introduce different kinds of fruits, likestrawberries or apples.Strawberries< ...", "datePublished": "", "numberOfPages": "19", "name": "XPath 1.0 Tutorial", "provider": "", "publisher": "Fiob", "contentUrl": "", "mainEntityOfPage": "https://www.preprod2.youscribe.com/catalogue/documents/ressources-professionnelles/informatique/xpath-1-0-tutorial-543009" } </script> <script type="text/javascript"> document .querySelectorAll('[data-requires-vendor-consent]') .forEach(el => { const vendor = el.getAttribute('data-requires-vendor-consent'); if (vendor == 'youtube') { el.style.display = 'inherit'; } }); </script> <script type="text/javascript" language="javascript"> if (window.dataLayer) { dataLayer.push({ 'user_status': 'not_connected' }); } </script> </body> </html> <!-- Result executed in 51 -->