[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: set union? xslt 2.0
On 08/04/2010 10:42, Dave Pawson wrote:
On Thu, 08 Apr 2010 10:25:48 +0100 David Carlisle<davidc@xxxxxxxxx> wrote: well you can either filer on the match as you have it there, or on the select in teh apply-templates, personal taste. This is the 'odd' meaning of = in xslt 2? As Martin said, it's the same as the meaning in XSLT 1. It's fairly natural to have implicit quantification since the basic type in xpath is a set 9xpat 10 or sequence (xpath 2) rather than singltons. If any item on LHS is present in RHS then = returns true. That's a rather non symmetric way of describing it.
no you get a single token, the whole string. Resolve using if contains(@target,'|') then tokenize.... else ... Getting rather messy since either could be a list. so don't do that then:-) that's exacty the same but using space instead of | as separator. You can use any character you like so ling as that character never appears in the token. Note though you may need extra levels of quoting in command line to get spaces into a parameter, but then the same might be true of | as that is also a special character to unix commandline shells (at least). Would the equality work then? Currently strings, is this a case where a sequence is needed? After you have tokenized there is no record of how the sequence was constructed, so equality works the same way. Or perhaps i misunderstood the question.
This e-mail has been scanned for all viruses by Star. The service is powered by MessageLabs. ________________________________________________________________________
|
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
|