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

RE: get child tag value

Subject: RE: get child tag value
From: "Haarman, Michael" <mhaarman@xxxxxxxxx>
Date: Tue, 29 Nov 2005 11:26:00 -0600
get child node by name
>       <!-- I need an additional parameter for the dataType. 
> It is defined in the child tag with different data type names -->
>       <!-- <xsl:with-param name="data_type" select="."/>-->



If I understand what you are asking, simply:

 <xsl:with-param name="data_type" select="local-name(*)"/>

gets the name of an unknown child element;

 <xsl:with-param name="data_type" select="*"/>

gets the value of an unknown child element.

"." selects self::node(), not child::node().  An empty path signifies
children, so you would choose the value of an unknown child node with "*",
the first unknown child with "*[1]".

This is elementary.

-----------------------------------
Mike Haarman,
XSL Developer,
Internet Broadcasting Systems, Inc.

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.