Subject: RE: [xsl] get child tag value From: "Haarman, Michael" <mhaarman@xxxxxxxxx> Date: Tue, 29 Nov 2005 11:26:00 -0600 |
> <!-- 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] get child tag value, David Carlisle | Thread | [xsl] FW: get child tag value, Mikael Petterson (KI |
Re: [xsl] looping on a line (XSLT 1, JBryant | Date | Re: [xsl] Problem with obtaining di, Ian E. Powell |
Month |