swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  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
   #base, #full, #xmlns
   xmlns-name
   xmlns-change
   markup-identification
 
 
 

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

OmniMark 7.1.2 Documentation Generated: June 28, 2005 at 5:44:54 pm
If you have any comments about this section of the documentation, send email to [email protected]

Copyright © Stilo Corporation, 1988-2005.