[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

xsl:number . . .

Subject: xsl:number . . .
From: Alejandro Raiczyk <alejandror@xxxxxxxxxxxxxxxx>
Date: Fri, 27 Oct 2000 11:54:54 -0300
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@xxxxxxxxxxxxxxxx



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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.