Changes

Jump to navigation Jump to search
10 bytes removed ,  20:55, 19 July 2022
m
Text replacement - "db:open" to "db:pre"
(# db:unrolllimit 10 #) {
for $i in 1 to 10
return db:openpre('db' || $i)//*[text() = 'abc']
}
(: rewritten to :)
db:openpre('db1')//*[text() = 'abc'],db:openpre('db2')//*[text() = 'abc'],
...
db:openpre('db10')//*[text() = 'abc'],
</syntaxhighlight>
<syntaxhighlight lang="xquery">
declare variable $name external := 'city';
db:openpre('addressbook')/descendant::*[name() = $name]
(: rewritten to :)
db:openpre('addressbook')/descendant::city
</syntaxhighlight>
<syntaxhighlight lang="xquery">
declare context item := db:openpre('factbook');
declare variable $DB := 'factbook';
//*[local-name() = 'name'][data() = 'Shenzhen'],
db:openpre('factbook')//name[. = 'Shenzhen'],db:openpre($DB)//name[. = 'Shenzhen'],
for $name in //name[text() = 'Shenzhen']
(: rewritten to :)
db:openpre('xmark')/site/people/person !
<item person='{ name/text() }'>{ count(
db:attribute('xmark', @id)/self::attribute(person)/parent::buyer/parent::closed_auction
Bureaucrats, editor, reviewer, Administrators
13,550

edits

Navigation menu