|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] xsl:number . . .
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








