Subject: Re: Question
From: Paul Prescod <paul@xxxxxxxxxxx>
Date: Wed, 03 Feb 1999 22:53:52 -0600
|
"G. Ken Holman" wrote:
>
> I suppose your solution would then be:
>
> <xsl:template match="METHODREF">
> <xsl:constant name="where-am-i" value="{@name}"/>
> <xsl:value-of select="ancestor(CLASS)/METHOD[@name=constant(where-am-i)]"/>
> </xsl:template>
That's exactly what I need.
> I don't think it can be done today. I'm hoping to see this feature added
> to XSL.
>
> Is there anything preventing you from using ID/IDREF instead? That would
> work fine with today's XSL.
Well, I would have to change my DTD. These names are locally unique, not
globally unique as XML requires IDs to be.
--
Paul Prescod - ISOGEN Consulting Engineer speaking for only himself
http://itrc.uwaterloo.ca/~papresco
"Remember, Ginger Rogers did everything that Fred Astaire did,
but she did it backwards and in high heels."
--Faith Whittlesey
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|