This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

RE: Element-matching without hardcoded values




> -----Original Message-----
> From: Westerlund, Malin [mailto:malin.westerlund@framfab.se]
> Sent: 07 April 2000 13:27
> To: 'xsl-list@mulberrytech.com'
> Subject: Element-matching without hardcoded values
> 
> 
> Hi all,
> I'm trying to create a default stylesheet, in which I want to 
> retrieve only the first parent and it's childnodes nodenames.
> 
> I would like the xsl to look something like this:

You're almost there. I added some punctuation, don't know what otput format
you want.
> 
> <xsl:template match="/">	
> 	<xsl:for-each select="*">
> 		<xsl:value-of select="name()">
> 		(<xsl:for-each select="*">
> 			<xsl:value-of select="name()">,
> 		</xsl:for-each>)	
> 	</xsl:for-each>
> </xsl:template>	
> 


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

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]