cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Turner <j...@socialchange.net.au>
Subject Re: Including templates from other File via xPath
Date Fri, 17 Nov 2000 13:56:08 GMT
On Fri, 17 Nov 2000, Thomas Viohl wrote:

> Hi,
> how can I reference a template from an other XML File into my current XSL
> Tansformation?
> I tried it this way, but cocoon only pastes the whole file into the current
> tag:

It's the XSLT engine doing it, not Cocoon, so it would be better to ask on
the XSL list.

Can't you use <xsl:import>, and then <xsl:call-template>?

--Jeff

> 
> ... snip ...
> <xsl:template match="TextBeschreibung">
> <xsl:apply-templates
> <xsl:apply-templates
> 
> select="document(concat('rtf/beschreibung/xml/',../PLSCH2,'.rtf.xml'),'#tran
> sdoc/file/section')" /></xsl:template>
> ... snip ...
> 
> the result is:
> <transdoc>
> 	<file>
> 		<section>
> 			<p>TEXT...</p>
> 		</section>
> 	</file>
> </transdoc>
> 
> what is the whole file not only (transdoc/file/section)
> 
> Any help on XPath with cocoon ??
> 
> Thomas
> 
> 
> ---------------------------------------------------------------------
> 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