xsl-list
[Top] [All Lists]

RE: [xsl] how can I rewrite it so I have a variable for year

2012-01-06 14:04:11
Your welcome -- of course given that <month> is a child of <year> in your
data structure you don't really have to pass the year value as a parameter
you could instead use the xpath expresion "parent::year/@value" to retrieve
it inside the month template.
 

<a href="{$root}/dagboek/{parent::year/@value}/{@value}/1" >

Take care


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

<Prev in Thread] Current Thread [Next in Thread>