swirl
Guide to OmniMark 9   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
 
 
 

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

OmniMark 9.1.0 Documentation Generated: September 2, 2010 at 1:51:21 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2010.