Subject: xsl:number . . . From: Alejandro Raiczyk <alejandror@xxxxxxxxxxxxxxxx> Date: Fri, 27 Oct 2000 11:54:54 -0300 |
Hi people, I've got a situation here: I have document with represents a navigation tree: <?xml version="1.0"?> <!-- Menu BANCA PARTICULAR --> <menu imagen="img/BancaParticular/foto_menu.gif"> <nodo imagen="img/BancaParticular/cuentas_off.gif" imgelegido="img/BancaParticular/cuentas_on.gif" > <nodo texto="Cuenta Joven" /> <nodo texto="Libertè" /> <nodo texto="SuperLibertè" /> <nodo texto="Privilege" /> </nodo> <nodo imagen="img/BancaParticular/tarjetas_off.gif" imgelegido="img/BancaParticular/tarjetas_on.gif" > <nodo texto="Visa"> <nodo texto="Clasic" /> <nodo texto="Internacional" /> <nodo texto="Gold" /> </nodo> <nodo texto="American Express" /> <nodo texto="Mastercard" accion="mastercard.xml"> <nodo texto="Clasic" accion="masterclasic.xml"/> <nodo texto="Internacional" /> <nodo texto="Gold" /> </nodo> <nodo texto="Electrón" /> </nodo> </menu> I have a menu.xsl wich has two template rules, one for nodo (node in English) and one for menu. The menu template draws the main table and applies templates to nodes. Each node draws itself and calls it(s) son(s). The nodes are numbered with this: <xsl:variable name="id"><xsl:number level="multiple"/></xsl:variable> wich gives me the path to the node. The question is, how can I get from the menu template the id of a particular node ? I mean, is there any way to do something like this: <xsl:variable name="prueba"><xsl:number level="multiple" select="nodo[@accion=$url]"/></xsl:variable> (I know this way doesn't work, but I need that!, I need to get the value of xsl:number of a node from a top level template) Hope you understand this and help me. Thanks in advance. Alejandro D. Raiczyk Desarrollo de Proyectos Technisys Informática S.R.L. Tel./Fax: +54(11)4322-7100 int 133 alejandror@xxxxxxxxxxxxxxxx XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Digest format change?, Joseph Kesselman/Wat | Thread | RE: number . . ., Kay Michael |
RE: How to declare a param which n, Kay Michael | Date | RE: Saxon: "unknown protocol", Webber, Andrew |
Month |