swirl Guide to OmniMark 6   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesOMX VariablesErrors
 
  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.

Example:

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.

Example:


  <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.

Example:


  <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
   xmlns-name
   xmlns-change
   #base, #full, #xmlns
   markup-identification
 
 
----  

Top [ INDEX ] [ CONCEPTS ] [ TASKS ] [ SYNTAX ] [ LIBRARIES ] [ OMX ] [ ERRORS ]

OmniMark 6.5 Documentation Generated: December 23, 2002 at 6:25:07 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © OmniMark Technologies Corporation, 1988-2002.