cocoon-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gree...@apache.org
Subject cvs commit: xml-cocoon/xdocs xmlfragment.xml
Date Wed, 07 Feb 2001 19:43:31 GMT
greenrd     01/02/07 11:43:31

  Modified:    xdocs    xmlfragment.xml
  Log:
  added note on how to use
  
  Revision  Changes    Path
  1.3       +9 -1      xml-cocoon/xdocs/xmlfragment.xml
  
  Index: xmlfragment.xml
  ===================================================================
  RCS file: /home/cvs/xml-cocoon/xdocs/xmlfragment.xml,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- xmlfragment.xml	2001/02/05 18:33:06	1.2
  +++ xmlfragment.xml	2001/02/07 19:43:30	1.3
  @@ -48,7 +48,15 @@
     }
   </source>
   
  -<p>Both methods result in <code>&lt;foo&gt;bar&lt;/foo&gt;</code>
being inserted in the resulting
  +<p>To insert a <code>FragmentTest</code> you might do something like
this
  + (if <code>myMethod()</code> returns a <code>FragmentTest</code>):</p>
  +
  +<source>
  +  &lt;xsp:expr&gt;MyClass.myMethod()&lt;/xsp:expr&gt;
  +</source>
  +
  +<p>Both methods in the example above
  + result in <code>&lt;foo&gt;bar&lt;/foo&gt;</code> being inserted
in the resulting
   document.</p>
   
   <p>Of course, it is very wasteful to write two methods to do exactly the same thing!

  
  
  

Mime
View raw message