geirm       01/12/18 12:48:31

  Added:       examples/simple/xdocs example1.dvsl example1.xml
  Log:
  Initial
  
  Revision  Changes    Path
  1.1                  jakarta-velocity-dvsl/examples/simple/xdocs/example1.dvsl
  
  Index: example1.dvsl
  ===================================================================
  #match("document")
  <html>
    <body>
  $context.applyTemplates()
    </body>
  </html>
  #end
  
  #match("section")
  <hr>
  <b>Section:</b> $attrib.name
  $context.applyTemplates("p")
  #end
  
  #match("p")
  <blockquote>
  $node.copy( $node.children() )
  </blockquote>
  #end
  
  
  
  
  1.1                  jakarta-velocity-dvsl/examples/simple/xdocs/example1.xml
  
  Index: example1.xml
  ===================================================================
  <?xml version="1.0"?>
  
  <document>
    <section name="foo">
      <p>
         Hello from section foo
      </p>
    </section>
    <section name="bar">
      <p>
         Hello from section bar
      </p>
    </section>
  </document>
  
  
  
  

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to