RE: [xsl] generate full xpath name to an attribute?

Subject: RE: [xsl] generate full xpath name to an attribute?
From: Ray Tayek <rtayek@xxxxxxxxx>
Date: Thu, 03 Apr 2003 00:53:57 -0800
At 08:37 AM 4/1/03 +0100, you wrote:
Try http://www.dpawson.co.uk/xsl/sect2/N6077.html#d5945e18

HTH DaveP.

yes, there is some good stuff there. i am using one of the ways and may try some others.


thanks


none of these seem to work very well. they tend to generate stuff
like:  input/Nodes@Node/Point/3.14159265358979

using the first two:
                         <xsl:if test="../@*/.">
                         <xsl:text>@</xsl:text>
                         </xsl:if>
                         <xsl:if test="not(../@*/.)">
                         <xsl:text>/</xsl:text>
                         </xsl:if>

does this: input/Nodes@Node/Point/3.14159265358979

the @ is in the wrong place and the value (pi) instead of the name is
coming out.

what i want is input/Nodes/Node/Point/x (i will solve the subscript problem
later with number or something i hope)....

--- ray tayek http://tayek.com/ actively seeking mentoring or telecommuting work vice chair orange county java users group http://www.ocjug.org/ hate spam? http://samspade.org/ssw/


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



Current Thread