That's better, we have something to go on.

I suggest eliminating the document.xsl stage by embedding the cinclude tags in documents.xml (pretty much what you are doing by saving the output xml file) and see if that works.

I have never had a problem with cinclude under 2.1.5 -> 2.1.8 inclusive but without seeing what you are trying to cinclude I cannot be sure you have not made an error. I'm a bit concerned that your node elements look like an XPath _expression_ which may be inappropriate in the situation you are having trouble with.

Unless you are using cinclude to re-use boiler-plate XML files in your application I have found there are more comprehensible and appropriate sitemap components for the jobs I end up doing. I would argue that dependence on cinclude is like using server-side includes as the cornerstone of a web-app.

Hope this helps

Warrell Harries | IT Services, West Sussex County Council | Location: Northleigh House
Office: +44 (0) 1243-756837
| Email: [EMAIL PROTECTED]

Inactive hide details for "Sanket Pattekar" <[EMAIL PROTECTED]>"Sanket Pattekar" <[EMAIL PROTECTED]>




          "Sanket Pattekar" <[EMAIL PROTECTED]>

          02/03/2006 16:16
          Please respond to users



To: [email protected]
cc: (bcc: Warrell Harries/ICTS/CTG/WSCC)
Subject: XSLT->Cinclude Transformer do not work


Hi,
I am using the following cocoon pipeline.

<map:match pattern="*/index.html">
<map:generate src=""> <map:transform src=""> <map:transform type="cinclude"/>
</map:serialize>
</map:match>

documents.xml is a explained in file below
<?xml version="1.0"?>
<root>
<node>contents/Info</node>
<node>contents/News</node>
</root>

What I do in document.xsl is take these node elements and convert the
same into an equivalent cinclude input file.

What I have observed is that this multiple pipelines doesnot work.

However If I remove the cinclude transformer and serialize the output
to xml, save this xml file and give it as input to cinclude it works.

Some how this pipelining xslt and cinclude transformers do not work in
conjuction.

I am using cocoon 2.1.8, JDK 1.4.2_10 and tomcat 5.0.28

Any inputs would be appreciated.

Sanket.

What I am doing is bacically accessing documents.xml, picking up the
links in this

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


GIF image

Reply via email to