Title: Glacier
I have a strange problem: my CInclude seems to work a little too enthusiastically!
I thought the URI http://myServer/myApp/cinclude/including is supposed to show "Including includes Included! " once, but it's showing it twice!
 
Here's what I have:
 
- In Site Map:
<map:match pattern="cinclude/*">
<map:generate src="control/config/{1}.xml"/>
<map:transform type="cinclude"/>
<map:transform src="view/xsl/html/{1}.xsl"/>
<map:serialize/>
</map:match>
- In the Folder control/config, I have two files - including.xml and included.xml.
including.xml
<?xml version="1.0" encoding="UTF-8"?>
<page xmlns:cinclude="http://apache.org/cocoon/include/1.0">
<title>Hello</title>
<content>
<para>Including includes </para>
<cinclude:include src="http://schintalapat03l.ptcnet.ptc.com:8080/cocoon/gvs/included.xml"/>
</content>
</page>
 
included.xml
<?xml version="1.0"?>
<p>
<strong>
Included!
</strong>
</p>
- In the Folder view/xsl/html, I have two files - including.xsl and included.xsl.
including.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" indent="yes"/>
<xsl:template match="//">
<xsl:value-of select="*" />
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
 
including.xsl
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="html" indent="yes"/>
<xsl:template match="//">
<xsl:apply-templates/>
</xsl:template>
</xsl:stylesheet>
Please pass on any suggestions on how I should debug this...
 
Thanks, and Best Regards,

Sreedhar Chintalapaty 
Consultant, ProjectLink Services,
PTC – 140 Kendrick St., Needham MA 02494
_______________________________________________________________________
A computer is like an Old Testament god, with a lot of rules and no mercy

 

Reply via email to