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><foo>bar</foo></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>
+ <xsp:expr>MyClass.myMethod()</xsp:expr>
+</source>
+
+<p>Both methods in the example above
+ result in <code><foo>bar</foo></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!