[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Filtering problem

Subject: Re: Filtering problem
From: Marcus Streets <marcus@xxxxxxxxxxx>
Date: Wed, 28 Jun 2006 16:37:08 +0100
wendell marcus
Wendell Piez wrote:
> 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.

Thanks to both of you.

The part I was really struggling with was priority - I had not got my
head around that.

Once I had that sorted I found I could be much more brutal with the
selection - as I did not need to worry about the corner cases as
priority magically solved those for me.

Marcus

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2007 All Rights Reserved.