Dave Jarvis' Repositories

git clone https://repo.autonoma.ca/repo/rxm.git

Clarified pops.

Author Dave Jarvis <email>
Date 2015-02-08 13:11:51 GMT-0800
Commit dac56c2b3084011d9d2346c4cc225093e7485531
Parent ea48be2
README.md
### Pops
-Stack pops (`^`) are necessary to switch context to a previous element.
-Multiple stack pops (`^`) are allowed per line; if a pop would
-otherwise exceed the root context, the context remains at the root.
+Stack pops (`^`) switch context to a previous element. Multiple pops
+per line are permitted; extraneous pops are silently ignored (it is
+not possible to switch context beyond the root level).
### Globs
```
-account.id = $id # $ starts a named parameter
-account.id <> $id # inequality parameter comparison
-account.id = {$id, 1} # becomes IN set
-account.id <> {$id, 1} # becomes NOT IN set
-account.id = null # becomes IS NULL
-account.id <> null # becomes IS NOT NULL
-account.id = 'text' # string equality comparison
-account.id = -42 # numeric equality comparison
-account.id < 42 # numeric less than comparison
-account.id > 42 # numeric greater than comparison
-account.id <= 42 # numeric less than or equal to comparison
-account.id >= 42 # numeric greater than or equal to comparison
+account.id = $id # $ starts a named parameter
+account.id <> $id # inequality parameter comparison
+account.id = {$id, 1} # becomes IN set
+account.id <> {$id, 1} # becomes NOT IN set
+account.id = null # becomes IS NULL
+account.id <> null # becomes IS NOT NULL
+account.id = 'text' # string equality comparison
+account.id = -42 # numeric equality comparison
+account.id < 42 # numeric less than comparison
+account.id > 42 # numeric greater than comparison
+account.id <= 42 # numeric less than or equal to comparison
+account.id >= 42 # numeric greater than or equal to comparison
```
## Namespace
-```
-root > people(html, http://www.w3.org/TR/html4/),
-person > html:person,
+Namespace syntax resembles:
-person.id > people:id( people, http://www.people.com ),
-```
+ root > people(html, http://www.w3.org/TR/html4/),
+ person > html:person,
+ person.id > people:id( people, http://www.people.com ),
# Usage
SELECT rxm( '...mapping...', 'json' );
+
+A call with variables resembles:
+ SELECT rxm( '...mapping...', 'xml', '' );
# Requirements
Delta 22 lines added, 20 lines removed, 2-line increase