cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diana Shannon <shan...@apache.org>
Subject Re: XInclude or CInclude working in Cocoon 2.0.4?
Date Fri, 14 Feb 2003 17:32:13 GMT

On Friday, February 14, 2003, at 12:24  PM, Diana Shannon wrote:

> xinclude works for me. Here are a few snippets:
>
> |--- file snippet (with and without xpointer) ---|
> <xinclude:include href="/content/products/products-
> all.xml#xpointer(//product[id='G005'])" xml:base="cocoon:"/>
>
> - or -
>
> <xinclude:include href="/content/products/products-all.xml" 
> xml:base="cocoon:"/>
>
> |--- sitemap snippet ---|
> <map:match pattern="content/**.xml">
>    <map:generate src="resources/xdocs/content/{1}.xml"/>
>    <map:serialize type="xml" />
> </map:match>
>
> |--- file hierarchy ---|
> - sitemap.xmap
> - resources/
> -- xdocs/
> --- content/
> ---- products/

Forgot to include another relevant sitemap snippet:

	<map:match pattern="content/services/software.xml">
	<!-- File containing the inclusion directive -->
	  <map:generate src="resources/xdocs/content/services/software.xml"/>
	  <map:transform type="xinclude"/>
	  <map:transform 
src="resources/stylesheets/library/product-examples2content.xsl"/>
	  <map:serialize type="xml"/>
	</map:match>

Diana


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