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

XSLT: Does an element know about its type?

Subject: XSLT: Does an element know about its type?
From: Wolfgang May <may@xxxxxxxxxxxxxxxxxxxxxxxxxx>
Date: Sat, 4 Mar 2000 17:25:47 +0100 (MET)
xslt current element type
Hi,
  
I want to apply the same template to several element types. The
template should know what is the type of the current element. The
template does not completely copy the element, but restructures some
of the contents:

<xsl:template match="river|lake|sea|island|mountain|desert">
  < this tag should be the element's tag, i.e, river or lake or ... >
    <xsl:copy-of select=" ... several properties ..."/>
    ... some more things ...
  </ suitable close-tag >
</xsl:template>

In the second line, the script has to examine the type of the
current element to generate the correct tag. is the something like
self.element-type?

Wolfgang

-- -----------------------------------------------------------------
Wolfgang May             E-mail: may@xxxxxxxxxxxxxxxxxxxxxxxxxx   
Universitaet Freiburg    http://www.informatik.uni-freiburg.de/~may/
Institut fuer Informatik D-79110 Freiburg / Germany
Lehrstuhl fuer Datenbanken und Informationssysteme


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


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.