use prism-tomorrow.css
This commit is contained in:
47
docs/_style/prism-master/examples/prism-xquery.html
Normal file
47
docs/_style/prism-master/examples/prism-xquery.html
Normal file
@ -0,0 +1,47 @@
|
||||
<h2>Comments</h2>
|
||||
<pre><code>(::)
|
||||
(: Comment :)
|
||||
(: Multi-line
|
||||
comment :)
|
||||
(:~
|
||||
: The <b>functx:substring-after-last</b> function returns the part
|
||||
: of <b>$string</b> that appears after the last occurrence of
|
||||
: <b>$delim</b>. If <b>$string</b> does not contain
|
||||
: <b>$delim</b>, the entire string is returned.
|
||||
:
|
||||
: @param $string the string to substring
|
||||
: @param $delim the delimiter
|
||||
: @return the substring
|
||||
:)</code></pre>
|
||||
|
||||
<h2>Variables</h2>
|
||||
<pre><code>$myProduct
|
||||
$foo-bar
|
||||
$strings:LetterA</code></pre>
|
||||
|
||||
<h2>Functions</h2>
|
||||
<pre><code>document-node(schema-element(catalog))
|
||||
strings:trim($arg as xs:string?)
|
||||
false()</code></pre>
|
||||
|
||||
<h2>Keywords</h2>
|
||||
<pre><code>xquery version "1.0";
|
||||
declare default element namespace "http://datypic.com/cat";
|
||||
declare boundary-space preserve;
|
||||
declare default collation "http://datypic.com/collation/custom";</code></pre>
|
||||
|
||||
<h2>Types</h2>
|
||||
<pre><code>xs:anyAtomicType
|
||||
element
|
||||
xs:double</code></pre>
|
||||
|
||||
<h2>Full example</h2>
|
||||
<pre><code><report xmlns="http://datypic.com/report"
|
||||
xmlns:cat="http://datypic.com/cat"
|
||||
xmlns:prod="http://datypic.com/prod"> {
|
||||
for $product in doc("prod_ns.xml")/prod:product
|
||||
return <lineItem>
|
||||
{$product/prod:number}
|
||||
{$product/prod:name}
|
||||
</lineItem>
|
||||
} </report></code></pre>
|
Reference in New Issue
Block a user