cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Robin Green" <gree...@hotmail.com>
Subject Re: Including templates from other File via xPath
Date Fri, 17 Nov 2000 17:38:15 GMT
"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.


Mime
View raw message