This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <para>{ | |
| for $x in $p/node() return (if ($x/self::emphasis) then <em>{$x/node()}</em> | |
| else if ($x/self::bold) then <strong>{$x/node()}</strong> | |
| else $x) | |
| }</para> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <para>{ | |
| for $x in $p/node() return (if ($x/self::emphasis) | |
| then <em>{$x/node()}</em> | |
| else $x) | |
| }</para> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <page display="Code" href="/code"> | |
| <group display="Open Source Projects"> | |
| … | |
| <group display="Applications"> | |
| <page display="Authoring App for Word" href="/code/marklogic-sample-authoring"/> | |
| <page display="AtomPub Server" href="/code/atompub-server"/> | |
| <page display="XFaqtor" href="/code/xfaqtor"/> | |
| <page display="Shakespeare Demo Application" href="/code/bill"/> | |
| <page display="xqlog: XQuery Blogger" href="/code/xqlog"/> | |
| <page display="RunDMC" href="/code/rundmc"/> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xdmp:xslt-invoke("hello.xsl", doc("input.xml"), | |
| map:map( | |
| <map:map xmlns:map="http://marklogic.com/xdmp/map"> | |
| <map:entry> | |
| <map:key>name1</map:key> | |
| <map:value>value1</map:value> | |
| </map:entry> | |
| <map:entry> | |
| <map:key>name2</map:key> | |
| <map:value>value2</map:value> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xdmp:xslt-invoke("hello.xsl", doc("input.xml"), map:map(), | |
| <options xmlns="xdmp:eval"> | |
| <mode>main</mode> | |
| </options>) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <options xmlns="xdmp:eval"> | |
| <!-- ... --> | |
| </options> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| let $map := map:map() | |
| let $_ := (map:put($map, "name1", "value1"), | |
| map:put($map, "name2", "value2")) | |
| xdmp:xslt-invoke("hello.xsl", doc("input.xml"), $map) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xdmp:invoke("hello.xqy", (xs:QName("name1"), "value1", | |
| xs:QName("name2"), "value2")) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xdmp:xslt-eval( | |
| <xsl:stylesheet version="2.0"/>, | |
| doc("input.xml") | |
| ) |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| xdmp:eval("'Hello, World!'") |