cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefano Bonnin" <s...@libero.it>
Subject xinclude problem
Date Thu, 07 Mar 2002 15:50:13 GMT
Hi I'm trying to use XInclude transformer but when I run the Cocoon
application I receive the following error

An error occurred
The org.apache.cocoon.www.sitemap_xmap notifies that
org.apache.cocoon.ProcessingException says:

Failed to execute pipeline.

More precisely:

org.apache.cocoon.ProcessingException: Failed to execute pipeline.:
org.xml.sax.SAXParseException: The processing instruction must begin with
the name of the target.

What does it mean?

I have the following XSP file:

<?xml version="1.0"?>
<xsp:page
 language="java"
 xmlns:xsp="http://apache.org/xsp"
 xmlns:xi="http://www.w3.org/2001/XInclude">
<xsp:structure>
 <xsp:include>smit.vmi.ConfVmi</xsp:include>
</xsp:structure>

<xsp:logic>
 ConfVmi vmiProperties = new ConfVmi();
 String ipAddress = vmiProperties.getProperty("address");
 private String nextUrl(String pageName) {
  return(ipAddress+pageName);
 }
</xsp:logic>

<page id="IMAGE3">
 <xsp:logic>
  File imagesFileName = new File("Messages/image.xml");
  File filename = new File("Messages/ITA.messages");
 </xsp:logic>
 <xi:include>
  <xsp:attribute
name="href"><xsp:expr>imagesFileName.getPath()</xsp:expr></xsp:attribute>
 </xi:include>

 <xi:include>
  <xsp:attribute
name="href"><xsp:expr>filename.getPath()</xsp:expr></xsp:attribute>
 </xi:include>

 <title message="INTRO3"/>
 <indication message="INTRO4"/>
 <form submit="BUTTO1" image="IMAGE1">
  <textinput id="INTRO1" paramname="user" length="15"/>
  <pwdinput id="INTRO2" paramname="password" length="15"/>
 </form>
 <buttons>
 <button type="BUTTO5">
  <xsp:expr>response.encodeURL(nextUrl("Help/HelpIntro.xml"))</xsp:expr>
 </button>
 </buttons>
 <logo id="LOGO1"/>
 <nextsection><xsp:expr>nextUrl("autent.xml")</xsp:expr></nextsection>
</page>
</xsp:page>

and the following pipeline:

<map:pipeline>
   <map:match pattern="">
    <map:redirect-to uri="intro.html"/>
   </map:match>

  <map:match pattern="*.html">
   <map:generate type="serverpages" src="smit/{1}.xsp"/>
 <map:transform type="xinclude"/>
 <!--<map:transform type="xslt" src="smit/style/xml2htmlExp.xsl"/>-->
   <map:serialize type="xml"/>
  </map:match>
</map:pipeline>

Why I get this error?

Thanks



---
Outgoing mail is certified Virus Free. (CopyRight FLASHH!)
Checked by AVG anti-virus system (http://www.grisoft.com).
Version: 6.0.330 / Virus Database: 184 - Release Date: 28/02/02


---------------------------------------------------------------------
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