summaryrefslogtreecommitdiffstats
path: root/doc/src/snippets/patternist/nodeConstructorsAreExpressions.xq
blob: ce36e843a79c94a3e065440421c2c31cf3528341 (plain)
1
2
3
4
let $docURI := 'maybeNotWellformed.xml'
return if(doc-available($docURI))
       then doc($docURI)//p/<para>{./node()}</para>
       else <para>Failed to load {$docURI}</para>