swirl
Guide to OmniMark 7   OmniMark home
docs home 
IndexConceptsTasksSyntaxLibrariesLegacy LibrariesErrors
 
  Related Syntax    
operator  

attribute is implied

 

 

Return type: Boolean
Returns:       

True or false.



Syntax
  attribute attribute-name element-qualifier*
     (indexer)? (is | isnt) implied


Purpose

An attribute test that succeeds when the referenced element or data attribute has no set value, either in the start tag or in the element declaration. Otherwise, the test fails. Using isnt instead of is reverses the results.

For example:

  repeat over attributes as this-one
     do when attribute this-one isnt implied
        output key of attribute this-one ||
        "='%v(this-one)'%n"
     done
  again

Unlike most other attribute references, no error occurs if the specified attribute doesn't exist, or was not given a value (since the test does not actually use the value).

If the element-qualifier references an element that does not exist, or the specified attribute is not declared, the is form of the test always fails, and the isnt form always succeeds.

    Related Syntax
   attribute
   attributes
 
 
 

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

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

Copyright © Stilo Corporation, 1988-2005.