Subject: Re: select="*/@UNITS/.." From: Duane Nickull <webmaster@xxxxxxxxxxxxxxxxx> Date: Wed, 17 Mar 1999 14:20:39 -0800 |
Hello Elliote: One thing that may be wrong is the access to "ATOM". Is "ATOM" the root tag. If not, you will have to specify it like this: match="ROOTTAG/NESTED_TAG1/NESTED_TAG2/ATOM" That way the XSL can find the exact node to access. The second thing you have to do is tell the XSL to access ALL the nodes. This is done: <xsl:for-each seleect="ATOM"> The value of atom for each one is: <xsl:value-of select="ATOM"/> </xsl:for-each> Give this a try. Duane Nickull www.cartnetwork.com "XML E-commerce made easy" Elliotte Rusty Harold wrote: > > I'm trying to find all child elements that have UNITS attributes by > using * to find all child elements, @UNITS to winnow those down to the > ones with UNITS attributes, and .. to select the parent node, like this: > > <xsl:template match="ATOM"> > <xsl:apply-templates select="*/@UNITS/.."/> > </xsl:template> > > However, this doesn't seem to actually work. Does anyone see a problem > with what I'm doing? > > -- > Elliotte Rusty Harold > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
select="*/@UNITS/..", Elliotte Rusty Harol | Thread | RE: select="*/@UNITS/..", Kay Michael |
comment nodes, Elliotte Rusty Harol | Date | Re: XFDL, XSL, and HTML, Rick Geimer |
Month |