[XSL-LIST Mailing List Archive Home] [By Thread] [By Date]

Re: [xsl] [Fwd: call-template with-param]


Subject: Re: [xsl] [Fwd: call-template with-param]
From: "J.Pietschmann" <j3322ptm@xxxxxxxx>
Date: Mon, 15 Dec 2003 10:42:45 +0100

Martin Wiklund wrote:

<xsl:template name="translate_entry" match="*/id">
  <xsl:param name="entry_id"/>
  <xsl:value-of select="document( 'descr.xml'
)/entries/entry[@id='$entry_id']"/>

You always retrieve the entry having an id with the string value '$entry-id'. Just use @id=$entry_id (without the apostrophes)

J.Pietschmann


XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list




Current Thread