xsl-list
[Top] [All Lists]

RE: Value-of varible question

2004-04-16 13:26:54
Awsome!!! Thanks
One more question. Im getting the results like this.

<Title lang="en-US">Williamsburg Web Design</Title>
<Title lang="en-US">Williamsburg Web Design</Title>

From an xml file like this.
        <Title lang="en-US">Williamsburg Web Design</Title>
        <Title lang="es-ES">Diseño Del Web De Williamsburg</Title>

It seams that its is using the value of one for both. I just want to return
the one that lang matches. Any idea on what im doing wrong?




-----Original Message-----
From: Andreas L. Delmelle [mailto:a_l(_dot_)delmelle(_at_)pandora(_dot_)be] 
Sent: Friday, April 16, 2004 4:26 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: RE: [xsl] Value-of varible question

-----Original Message-----
From: John Hamman [mailto:John(_at_)iThinkdesigns(_dot_)com]

For some reason this won't work 
<xsl:param name="local" select="en-EN"/>
<xsl:template match="Title">
              <Title>
                      <xsl:copy-of
select="/iThink.ePulp/Page/Content/Meta/Title[(_at_)lang=$local]"/>
              </Title>
      </xsl:template>
<snip />
 
Does anyone know why and is there a way I can get around it?

Yes. Use :

<xsl:param name="local" select="'en-EN'" />

(mind the quotes..)


Cheers,

Andreas


--+------------------------------------------------------------------
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>
--+--