xml-general mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Samson, Lyndon [IT]" <lyndon.sam...@ssmb.com>
Subject XSLT question
Date Fri, 23 Feb 2001 11:51:29 GMT
Hi Listers

I have a XSLT template which match="something/*" I want to reference the
name of
the sub element matched in the output.

ie

input

<something>
  <subthing1>aa</subthing1>
  <subthing2>bb</subthing2>
  <subotherthing1>cc</subotherthing1>
</something>

template

<xsl:template match="something/*">
 <xsl:what-do-use-here>=<xsl:value-of select="."/>
</xsl:template>

output

subthing1=aa
subthing2=bb
...

I know this is allmost certainly massivly simple, yet still I can't get it,
I'm just a doofus I guess :-)

thanks

PS. To the pedants, I know this is slighty off topic, sorry...

Mime
View raw message