Subject: Re: [xsl] XSL with multiple levels From: "Adam Cohen" <random49k@xxxxxxxxxxx> Date: Thu, 10 Oct 2002 20:58:57 +0000 |
Not the most sensible XML, but you knew that.
If you can say what test you can subject a component/*/*/* element to that
makes it clear whether to use that element itself or its child elements, it
shouldn't be too difficult. Perhaps the presence of the 'manufacturer'
attribute can be the test. Take the union of the ones that have a manufacturer
and the ones that are children of those that don't.
component/*/*/*[@manufacturer] | component/*/*/*[not(@manufacturer)]/*
or perhaps more simply
component/*/*/descendant::*[@manufacturer]
_________________________________________________________________ Chat with friends online, try MSN Messenger: http://messenger.msn.com
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] XSL with multiple levels, Mike Brown | Thread | [xsl] HTML to XML via XSL ?, Mac Martine |
[xsl] Re: How can I get the XPATH o, Dimitre Novatchev | Date | RE: [xsl] removing tab formatting d, Macaulay,Malcolm (US |
Month |