cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "florent barbare" <f.barb...@netia.fr>
Subject include xml fragment in xsp
Date Mon, 10 Sep 2001 15:59:46 GMT
Hi all,

i'm trying to include an xml fragment
in a xsp page several ways ("included" FAQ way)
but never don't work. I'm using C2.

on following, this way don't work but no error message
is displayed

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
          language="java"

     xmlns:xsp="http://apache.org/xsp"
     xmlns:xinclude="http://www.w3.org/1999/XML/xinclude"
     xmlns:request="http://apache.org/servlet/request">


>

  <page>

<content  >
      <xinclude:include
         href="first.xml" parse="xml"/>


coin



   </content>
  </page>
</xsp:page>


this one (above) says :
org.apache.cocoon.ProcessingException: Language
Exception:org.apache.cocoon.components.language.LanguageException: Error
compiling result_xsp: Line 75, column 50: '}' expected

<?xml version="1.0" encoding="ISO-8859-1"?>

<xsp:page
          language="java"

     xmlns:xsp="http://apache.org/xsp"
     xmlns:util="http://apache.org/cocoon/utils"
     xmlns:request="http://apache.org/servlet/request">


>

  <page>

<content>

   <util:include-file name="../users/first.xml"/>
<util:get-file-contents name="../users/first.xml"/>
<util:include-uri name="../users/first.xml"/>


   </content>
  </page>
</xsp:page>

Thanks in advance for help.

Florent


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.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