Re: [xsl] template which handles identical XML-structures but can insert unique label texts

Subject: Re: [xsl] template which handles identical XML-structures but can insert unique label texts
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 1 Nov 2006 13:40:30 GMT
> But still you assume that the label texts are to be found in the
> source xml.

well I assumed that you were using the xml element names as labels, as
you didn't say what labels you wanted.

If you don't want to use teh element names, use something else, so
replace

<xsl:value-of select="name()"/>

wiith
<xsl:apply-templates mode="label" select="."/>

then if you want the element InitialStorageQuantity to make the label
Initial Storage Quantity
then have
<xsl:template
  mode="label"
  match="InitialStorageQuantity"
  >Initial Storage Quantity</xsl:template>

David

Current Thread