diff options
Diffstat (limited to 'doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq')
-rw-r--r-- | doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq b/doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq new file mode 100644 index 0000000..ce36e84 --- /dev/null +++ b/doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq @@ -0,0 +1,4 @@ +let $docURI := 'maybeNotWellformed.xml' +return if(doc-available($docURI)) + then doc($docURI)//p/<para>{./node()}</para> + else <para>Failed to load {$docURI}</para> |