|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: select="*/@UNITS/.."
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








