Subject: [xsl] Can't use variable as temporary tree in XSLT 2.0 From: cknell@xxxxxxxxxx Date: Tue, 17 Oct 2006 13:14:53 -0400 |
This is something I must have done a hundred times, but today I keep butting my head against the wall. I'm using XLST 2.0 (Saxon 8.7.3j). I've stripped it down to the simplest example I could imagine and tried with that, but I still don't get what I expect. In my stylesheet, in a template, I have this variable defined: <xsl:variable name="months"> <months> <month>JAN</month> <month>FEB</month> </months> </xsl:variable> Immediately after that I have this: <tr><td><xsl:value-of select="$months/months/month[position()=1]" /></td></tr> In my result document I expect to see: <tr><td>JAN</td></tr> What I get is: <tr><td></td></tr> Please someone tell me what I don't see. Thanks. -- Charles Knell cknell@xxxxxxxxxx - email
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Can axis specifiers be us, Mukul Gandhi | Thread | RE: [xsl] Can't use variable as tem, Michael Kay |
Re: [xsl] Determining if an optiona, David Carlisle | Date | RE: [xsl] template processing with , Michael Kay |
Month |