You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Robin Green <gr...@hotmail.com> on 2000/11/17 18:38:15 UTC
Re: Including templates from other File via xPath
"Thomas Viohl" <tv...@hw-edv.de> wrote:
>Hi,
>how can I reference a template from an other XML File
you don't mean the _template_ is in another file, do you? Because the code
below uses a template from the same xsl file, but tries to apply it to a
different xml file.
into my current XSL
>Tansformation?
>I tried it this way, but cocoon only pastes the whole file into the current
>tag:
>
>... 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>
I don't think that # should be there. You're thinking of HTML, probably.
_________________________________________________________________________
Get Your Private, Free E-mail from MSN Hotmail at http://www.hotmail.com.
Share information about yourself, create your own public profile at
http://profiles.msn.com.