Subject: RE: [xsl] Getting name of and element From: "Ragulf Pickaxe" <jawxml@xxxxxxxxxxx> Date: Fri, 16 Nov 2001 12:11:27 +0000 |
By the way, is there a diffrence between <xsl:template match="/"> that I use and <xsl:template match="/*"> that you use?
Hope you can help me Ragulf :)
From: "Chris Bayes" <chris@xxxxxxxxxxx> Reply-To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: RE: [xsl] Getting name of and element Date: Fri, 16 Nov 2001 11:27:48 -0000
Pickaxe, <?xml version="1.0" ?> <test att1="" att2="" att3=""> </test>
<?xml version="1.0"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method = "html" encoding="Windows-1252" />
<xsl:template match="/*"> <html> <head></head> <body>My top level element is <xsl:value-of select="name()" /><br/> It's attributes are <xsl:for-each select="@*"> <xsl:value-of select="name()" /> </xsl:for-each> </body> </html> </xsl:template> </xsl:stylesheet>
Ciao Chris
XML/XSL Portal http://www.bayes.co.uk/xml
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Getting name of and eleme, Ragulf Pickaxe | Thread | Re: [xsl] Getting name of and eleme, David Carlisle |
RE: [xsl] MS XML Parser, Ruane, Conleth | Date | Re: [xsl] A riddle..., David Carlisle |
Month |