Subject: Obtaining the element name From: Nigel Hutchison <nwoh@xxxxxxxxxxxxxx> Date: Mon, 02 Nov 1998 19:20:12 +0100 |
I am trying to translate the Microsoft XSL style sheet listed below into XSL1.0 How do I get at the element type? Is there a functional equivalent to "tagname" that I can use within a template like this to pick out the element type within a template that matches as follows: <xsl:template match="*|/"> </xsl:template> **************************************************************************** *******************++ <xsl> <!-- Generic stylesheet for viewing XML --> <!-- Note that this stylesheet does not display attributes. --> <rule> <root/> <DIV font-family="Courier" font-size="10pt"> <SPAN color="gray"><<eval>tagName</eval>></SPAN> <children/> <SPAN color="gray"></<eval>tagName</eval>></SPAN> </DIV> </rule> <!-- Default Rule - matches any element --> <rule> <target-element/> <DIV margin-left="1em"> <SPAN color="gray"><<eval>tagName</eval>></SPAN><children/><SPAN color="gray"></<eval>tagName</eval>></SPAN> </DIV> </rule> </xsl> Nigel W. O. Hutchison Technical Consultant Software AG Germany mailto:nwoh@xxxxxxxxxxxxxx Tel +49 (0)6151 92 1207 * XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE:Is there a real XSl guru out the, Igor . Pechersky | Thread | Re: Obtaining the element name, Bernd . Loepmeier |
RE:Is there a real XSl guru out the, Igor . Pechersky | Date | Re: Obtaining the element name, Bernd . Loepmeier |
Month |