cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Larry Meadors" <Larry.Mead...@plumcreek.com>
Subject RE: Help: xml from a class with XSP (thanks..and a note)
Date Mon, 01 Apr 2002 13:43:32 GMT
Thanks, it works!
 
Can you spot the difference between the two code fragments? The first
one works, the second does not.
 
This works:
===
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0">
 <page>
  <util:include-expr>
  
<util:expr><xsp:expr>com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr>
  </util:include-expr>
 </page>
</xsp:page>
===
 
This does not:
===
<?xml version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0">
 <page>
  <util:include-expr>
   <util:expr>
<xsp:expr>com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr>
  </util:include-expr>
 </page>
</xsp:page>
===
 
There is a single space between <util:expr> and <xsp:expr> in the
second one. Touchy, touchy! ;-)
 
Thanks again.
Larry

>>> cdas@accordiasys.com 03/29/02 05:03PM >>>
 
If u use just xsp:expr, it will treat the o/p as parsed  string , if
you require the contents to be treated as a XML fragment, you need to do
as listed below
Include util logic sheet and use the <util:* >tags ===<?xml
version="1.0"?>
<xsp:page xmlns:xsp="http://apache.org/xsp"
xmlns:util="http://apache.org/xsp/util/2.0"><page>
<util:include-expr><util:expr><xsp:expr>
com.plumcreek.junk.XSPTest.testMethod()</xsp:expr></util:expr></util:include-expr>
 </page></xsp:page>
===

Mime
View raw message