cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tom Place" <psyt...@nottingham.ac.uk>
Subject xsp util and file contents
Date Tue, 11 Feb 2003 21:13:08 GMT
Hi,

I’m trying to insert xml into my xsp, this xml is for navigation
purposes so ideally I would like to use one navigation file in many
different xsp documents.
I have looked at the mail archive to find out the details about this but
I cant seam to get it to work!

My example is below:

<?xml version="1.0" encoding="UTF-8"?>

<xsp:page language="java" 
              xmlns:xsp="http://apache.org/xsp"
	  xmlns:util=”http://apache.org/xsp/util/2.0”>
    <xsp:logic>
      XSPUtil u = new XSPUtil();
      String navigation =
u.getFileContents(/tomcat/webapps/cocoon/autorevs/docs/templates/logged-
out-navigation.xml);
      <util:include-expr>
        <util:expr>
          <xsp:expr>navigation</xsp:expr>
        </util:expr>
      </util:include-expr>
    </xsp:logic>
</xsp:page>

I am getting compilation errors – any ideas?

Cheers

Tom 
 



---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

To unsubscribe, e-mail:     <cocoon-users-unsubscribe@xml.apache.org>
For additional commands, e-mail:   <cocoon-users-help@xml.apache.org>


Mime
View raw message