or:
<xsl:template mode="head" match="*">
depending what you want to match.
On Fri, Dec 9, 2011 at 11:55 AM, Roelof Wobben <rwobben(_at_)hotmail(_dot_)com>
wrote:
Oke,
So it must be
<xsl:template mode="head" match="/">
Roelof
----------------------------------------
Date: Fri, 9 Dec 2011 11:40:57 +0100
From: michel(_dot_)hendriksen(_at_)42(_dot_)nl
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] mode question
Add a match attribute to the calling templates.
Michel
On Fri, Dec 9, 2011 at 11:38 AM, Roelof Wobben
<rwobben(_at_)hotmail(_dot_)com> wrote:
hello,
I want to use the mode tag in xslt but now I get a error message that name
or match is missing.
How do I repair it the best.
<xsl:template match="/">
<xsl:apply-templates mode="head"/>
<xsl:apply-templates mode="content"/>
<xsl:apply-templates mode="bottom" />
</xsl:template>
<xsl:template mode="head">
<head>
<title>
<xsl:value-of select="$website-name"/> - <xsl:value-of
select="$page-title"/>
</title>
<link rel="stylesheet" type="text/css"
href="{$workspace}/assets/css/style.css"/>
<link rel="alternate" type="application/rss+xml" title="Notepad Chaos RSS
Feed" href="http://www.notepadchaos.com/feed/" />
<link rel="pingback" href="http://www.notepadchaos.com/xmlrpc.php" />
<link rel="alternate" type="application/rss+xml" title="Notepad Chaos
Feed" href="http://www.notepadchaos.com/feed/" />
<link rel="alternate" type="application/rss+xml" title="Notepad Chaos
Comments Feed" href="http://www.notepadchaos.com/comments/feed/" />
<link rel="EditURI" type="application/rsd+xml" title="RSD"
href="http://www.notepadchaos.com/xmlrpc.php?rsd" />
<link rel="wlwmanifest" type="application/wlwmanifest+xml"
href="http://www.notepadchaos.com/wp-includes/wlwmanifest.xml"/>
<link rel='index' title='Notepad Chaos'
href='http://www.notepadchaos.com/' />
</head>
</xsl:template>
Roelof
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail:
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--