[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Obtaining the element name
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|