Marcus,
Mukul is correct to point you to the identity transform to build your filter.
In particular, your problem is just a bit trickier than the ordinary
case since your requirements include things like
there are no attributes starting dim1
or
dim1_a="yes"
Unfortunately, the proposed match="*[starts-with(name(@*), 'dim1')]
won't work, since when there are several attributes it will only
examine the name of the first of them, in document order, which as it
happens is undefined.
You may need something like
match="*[not(@*[starts-with(name(),'dim1')]) or @dim1_a='yes']"
... as you can see, the XPath is pretty fancy. Basically it's
matching any element node for which the set of attributes whose name
starts with 'dim1' is empty, or for which @dim1_a='yes'.
More information about filters using the identity transform is
available on line (use your search engine) or the FAQ.
Cheers,
Wendell
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--