This file contains 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
declare variable $doc := document { | |
<doc> | |
<items> | |
<meta id="firstGroup"/> | |
<item>1</item> | |
<item>2</item> | |
</items> | |
<items> | |
<meta id="secondGroup"/> | |
<item>3</item> |
This file contains 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" | |
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> | |
<xsl:template match="/"> | |
<xsl:copy-of select="."/> | |
</xsl:template> | |
</xsl:stylesheet>, | |
document{<my-doc/>}) |
This file contains 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
declare variable $doc := document { | |
<groups> | |
<group> | |
<item>first item</item> | |
<item>second item</item> | |
</group> | |
<group> | |
<item>third item</item> | |
<item>fourth item</item> | |
</group> |
This file contains 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
root(.) treat as document-node() |
This file contains 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
declare variable $doc := document { | |
<groups> | |
<group> | |
<item>first item</item> | |
<item>second item</item> | |
</group> | |
<group> | |
<item>third item</item> | |
<item>fourth item</item> |
This file contains 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
declare variable $doc := document { | |
<people> | |
<group> | |
<person>Peter</person> | |
<person>Paul</person> | |
<person>Mary</person> | |
</group> | |
<group> | |
<person>June</person> | |
<person>Ward</person> |
This file contains 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
root(.) treat as document-node() |
This file contains 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
declare variable $doc := document { | |
<people id="all"> | |
<group id="group1"> | |
<person id="peter">Peter</person> | |
<person id="paul">Paul</person> | |
<person id="mary">Mary</person> | |
</group> | |
<group id="group2"> | |
<person id="june">June</person> | |
<person id="ward">Ward</person> |
This file contains 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
<doc> | |
<group type="widget"> | |
<item type="sprocket">...</item> | |
... | |
</group> | |
<group type="employee"> | |
<item type="executive">...</item> | |
... | |
</group> | |
<group type="place"> |
This file contains 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
//group[@type eq 'widget'] |
OlderNewer