Re: Filtering problem
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.
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