|
|||||
|
|||||
Related Syntax | |||||
built-in variable |
#xmlns-names |
Purpose
This is a built in read-only stream shelf displaying the currently active set of xml namespace/prefix mappings. The keys on the shelf are the element prefixes, and the values are the namespace names (read URIs) that they correspond to.
While parsing the content of the following element
<a xmlns:omdoc='http://www.omnimark.com/docs/' xmlns:omtbl='http://www.omnimark.com/table.dtd'>the shelf will contain
A namespace name of "" (a zero length string) indicates "no namespace". Encountering this explicitly causes the prefix to be removed from the shelf if it already exists, or otherwise simply not added.
<a xmlns:foo='bar'><b xmlns:foo=''>...Immediately following the start tag for a, the #xmlns-names shelf has an entry with key "foo" and value "bar". Inside element b, this shelf item is removed. After the end of element b (but still within element a) the shelf item will be restored.
The default namespace when defined with a non-empty string as a value appears on the shelf with the empty string as the item key.
<a xmlns='foo'>... ;causes an entry with key "" and value "foo" to be placed on the shelf.
The shelf is saved before each start tag, and restored after each end tag. The shelf is save-cleared at the start of each markup-parse.
Related Syntax |
Copyright © Stilo International plc, 1988-2010.