/
githubmirror
/
CS-Notes
Обзор
Документация
Войти
/
githubmirror
/
CS-Notes
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
docs/_style/prism-master/examples/prism-xquery.html
47 строк
1 KB
CyC2018
use prism-tomorrow.css
19 дек 2018, 09:09
19 дек 2018, 09:09
e9e604e
Код
Авторство
О чём код?
<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>