swirl
Guide to OmniMark 8   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
rule  

xmlns-change

 
 

Syntax

xmlns-change condition? 
     local-scope


Purpose

A markup rule that fires when the namespace name of the current element is different form the namespace name of its parent. For the top level element, xmlns-change rules fire if the namespace name is not the empty string.

These rules require a %c or suppress action. They wrap the rule selection of the element rule for the element that caused the namespace change. In other words, the %c in the xmlns-change rule causes rule selection to take place for the element in the new namespace.

Example


  
    xmlns-change when xmlns-name =
          "www.some-uri.org/authors.xml"
       using group "authors"
          output "%c"
  
    group "authors"
    element #base "name"
    ...

    Related Syntax
   #base, #full, #xmlns
   #xmlns-names
   xmlns-name
   markup-identification
 
 
 

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

OmniMark 8.2.0 Documentation Generated: March 13, 2008 at 3:33:48 pm
If you have any comments about this section of the documentation, please use this form.

Copyright © Stilo International plc, 1988-2008.