CommentsComments
Guide to the DPML language syntax and features
Home > Books > Solutions Developer Guide > DPML > Comments

Rate this page:
Really useful
Satisfactory
Not helpful
Confusing
Incorrect
Unsure
Extra comments:


Comments

Traditional XML comments using <!-- and --> can be used in a DPML program. However, we recommend using the comment element instead. The comment element can be placed in most locations within an DPML program fragment and will support nesting, XHTML formatted annotations, and has the benefit of being processed like regular XML.

<idoc>
  <comment>This DPML program demonstrates use of comments</comment>
  <seq>
    <comment> This is the
      <b>first</b> sequence
    </comment>
    <instr>
      <comment> This is an
        <a href="http://www.w3.org/">XSLT</a> instruction
      </comment>
      <type>xslt</type>
      <operand>file:/myOperand.xml</operand>
      <operator>file:/myStylesheet.xsl</operator>
      <target>this:response</target>
    </instr>
  </seq>
</idoc>
© 2003-2007, 1060 Research Limited. 1060 registered trademark, NetKernel trademark of 1060 Research Limited.