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: <[EMAIL PROTECTED]>
For additional commands, e-mail: <[EMAIL PROTECTED]>



Reply via email to