Subject: Re: [xsl] xsl-call template problem From: Joerg Heinicke <joerg.heinicke@xxxxxx> Date: Wed, 14 Aug 2002 19:59:14 +0200 |
Hi.
I have a problem with <xsl:call-template>. When I use:
<xsl:template match='dxl:database'><xsl:text/> <xsl:element name='Message'> <xsl:text> </xsl:text> <xsl:apply-templates/> </xsl:element> </xsl:template>
<xsl:template name="test" match='dxl:document[@form="frmTask"]'>
<xsl:element name="ContentProviderInfo"> <xsl:value-of select='dxl:item[@name="ContentProviderInfo"]/dxl:text'
/> </xsl:element>
</xsl:template>
Everything works great, but if I want to use the call template tag like:
<xsl:template match='dxl:database'><xsl:text/>
<xsl:element name='Message'> <xsl:call-template name = "test" />
</xsl:element>
</xsl:template>
<xsl:template name="test" match='dxl:document[@form="frmTask"]'>
<xsl:element name="ContentProviderInfo"> <xsl:value-of select='dxl:item[@name="ContentProviderInfo"]/dxl:text'
/> </xsl:element>
</xsl:template>
Then it won't work(doesn't find the data). I know there is some difference here in context node and nodelist from what I have been reading, but I can't understand the difference. I haven't seen any examples of xsl:call-template calling a template that iterates through the current XML document.
Any help would be greatly appreciated!
Best Regards, Christer Nordvik
System Development VIRBUS AG Fon +49(0)341-979-7419 Fax +49(0)341-979-7409 joerg.heinicke@xxxxxxxxx www.virbus.de
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl-call template problem, Christer Nordvik | Thread | Re: [xsl] xsl-call template problem, Vasu Chakkera |
Re: [xsl] Implementing XPointer Res, W. Eliot Kimber | Date | Re: [xsl] Implementing XPointer Res, Jeni Tennison |
Month |