Subject: RE: [xsl] Value-of varible question From: "John Hamman" <John@xxxxxxxxxxxxxxxxx> Date: Fri, 16 Apr 2004 16:26:54 -0400 |
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">Diseqo 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.delmelle@xxxxxxxxxx] Sent: Friday, April 16, 2004 4:26 PM To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx Subject: RE: [xsl] Value-of varible question > -----Original Message----- > From: John Hamman [mailto:John@xxxxxxxxxxxxxxxxx] > > 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[@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
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Value-of varible question, Andreas L. Delmelle | Thread | RE: [xsl] Value-of varible question, M. David Peterson |
RE: [xsl] Value-of varible question, Andreas L. Delmelle | Date | RE: [xsl] Value-of varible question, Hansen, John |
Month |