[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: template which handles identical XML-structures bu

Subject: Re: 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
Re:  template which handles identical XML-structures bu
> 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

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.