Cernunnos Manual


<serialize-grammar>

Description:

Creates an XML representation of the current grammar and sets it as the value of the 'Attributes.NODE' attribute.

Reagents:

Name XPath Description Reagent Type Expected Type Required
RECURSIVE @recursive If true, entries from parent grammar(s) will be inclded in the generated XML. The default is true. PHRASE java.lang.Boolean No
SUBTASKS * The set of tasks that are children of this task. NODE_LIST java.util.List No

Examples:

Creates the documentation you are reading (when executed from the root of a Cernunnos source tree):

 
       
        <serialize-grammar> 
          <file-iterator dir="media/grammardoc" excludes="**/*.xsl"> 
            <copy-file to-dir="docs/grammardoc"/> 
          </file-iterator>  
          <xslt stylesheet="media/grammardoc/table-of-contents.xsl" to-file="docs/grammardoc/table-of-contents.html"/>  
          <node-iterator xpath="entry"> 
            <xslt stylesheet="media/grammardoc/entry.xsl" to-file="docs/grammardoc/entries/${valueOf(name)}.html"/> 
          </node-iterator> 
        </serialize-grammar>