cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Torsten Curdt" <tcu...@dff.st>
Subject RE: including or even chained including
Date Wed, 09 Aug 2000 09:11:10 GMT
Thanks! That was is...

A simple include works now.. But chaining does
not work! Is chaining or XML includes even possible?

index.xml -include-> navigation.xml -include-> defaultnavigation.xml

index.xml:
<?xml version="1.0"?>
<?xml-stylesheet href="../dynamics/index.xsp" type="text/xsl"?>
<?cocoon-process type="xslt"?>
<?cocoon-process type="xinclude"?>

<page xmlns:xinclude="http://www.w3.org/1999/XML/xinclude">
 <xinclude:include parse="xml" href="navigation.xml"/>
 <content>Welcome</content>
</page>

navigation.xml:
<?xml version="1.0"?>
<xinclude:include parse="xml" href="defaultnavigation.xml"/>
<navigation>
 <nav>specific</nav>
<navigation>

defaultnavigation.xml:
<?xml version="1.0"?>
<navigation>
 <nav>global</nav>
</navigation>
--
Torsten

Mime
View raw message