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]

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:

<xsl:template match="/">	
	<xsl:value-of select="the first parent under the root">
		<xsl:node-name>
		<xsl:for-each select="parent/children">
			<xsl:node-name/>
		</xsl:for-each>	
	</xsl:for-each>
</xsl:template>	

Thanks

Malin


 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]