Subject: Re: [xsl] node responding to ancestor node attributes From: Ryan Neil Gillespie <scoobie@xxxxxxxx> Date: Tue, 16 Jul 2002 15:41:23 -0400 (EDT) |
<xsl:variable name="thisLanguage" select="page[@language]"/> Then reference the variable with "$thisLanguage". Also, define the variable immediately after your <stylesheet> tag to make it global. _ryan On Tue, 16 Jul 2002, Michael wrote: > In my root node I specifiy the language I'd like output to be in. I tried > matching a template of page[@language = 'es']//content//element[@type = > '1'] but that didn't seem to work. Is there a proper way to check that > sort of data? Is it possible to take that value and set it to a global > variable any node can easily check? Thanks. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] node responding to ancestor n, Michael | Thread | Re: [xsl] node responding to ancest, Jeni Tennison |
RE: [xsl] Re: Simple Replacement, CROFT, MICHAEL | Date | Re: [xsl] urgent - carriage return,, Peter Davis |
Month |