This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

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&#232;" />
		<nodo texto="SuperLibert&#232;" />
		<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&#243;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@technisys.com.ar



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]