Just a quick guess, but could it be a namespace issue?
do the source docs use a ns, if so try this:
<xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/xhtml:html)">
or
<xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/xhtml:p)">

Hope this helps :-)

--Doug


Sean Fulton wrote:
I'm trying to do aggregation of page parts with xinclude. I have a pipeline like so:

<map:pipeline>
  <map:match pattern="**/test.html">
     <map:generate type="xpathdirectory" src="content/live/media">
        <map:paramater name="depth" value="2" />
<map:parameter name="xmlFiles" value="\.xml$" /> </map:generate>
     <map:transform src="xslt/news-listing.xsl" />
     <map:transform type="xinclude" />
     <map:serialize type="xml" />   </map:match>
</map:pipeline>
news-listing.xsl looks like this:

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                              xmlns:xi="http://www.w3.org/2001/XInclude";
xmlns:dir="http://apache.org/cocoon/directory/2.0";
                              xmlns:xhtml="http://www.w3.org/1999/xhtml";>

<xsl:template match="/">
<xsl:apply-templates select="dir:directory" xmlns:xi="http://www.w3.org/2001/XInclude"; /> </xsl:template> <xsl:template match="dir:directory" xmlns:xi="http://www.w3.org/2001/XInclude"; >

 <xsl:for-each select="dir:directory">
    <xsl:variable name="url" select="@name" />
    <xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/)">
        <xi:fallback>We're not getting anything</xi:fallback>
    </xi:include>
 </xsl:for-each>
</xsl:template>
</xsl:stylesheet>


The actual xinclude works when I do this:
    <xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/)">

But not if I try to reference anything else with xpointer such as:
<xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/html)"> or
    <xi:include href="content/live/media/{$url}/index_en.xml#xpointer(/p)">

Anyone know what I am doing wrong?

Thanks.

    Sean



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



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

Reply via email to