sg

Perşembe, Kasım 24, 2005

Re: Problems with overlays


Peterb,

Peterb wrote:
> no, It works a little differently:
>
> > <xsl:template match="/">
> > <xsl:apply-templates select="info" />
> > </xsl:template>
> means take the whole document(indicated by /) and apply the info
> template.

That won't work.

You need to use <xsl:call-template> rather than <xsl:apply-templates>
and the template that you "call" must have a name attribute rather than
a match attribute (actually it can have both a name and a match
attribute but you aren't using a "match context)...

<xsl:template name="info">
...
</xsl:template>

Personally, I find it much easier to debug XSLT outside of the browser
(e.g. by using xsltproc under Linux)...

Cheers.

--MIke

0 Comments:

Yorum Gönder

<< Home


Komik Videolar   islam  şarkı sözleri  yemek tarifleri  gelibolu  huzur   sağlık