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

RE: Common Element Solution (XSL 2.0)

Subject: RE: Common Element Solution (XSL 2.0)
From: "Pawson, David" <David.Pawson@xxxxxxxxxxx>
Date: Wed, 23 Mar 2005 08:23:30 -0000
30 commonly elements
    -----Original Message-----
    From: Michael Kay
    > I  also thought about the one-such-name-to-a-table problem,

    For your particular application the source data obviously
    satisfies this constraint, but the constraint needs to be
    stated in case someone tries to apply the same algorithm to
    a different situation where the constraint doesn't hold.

    It's not hard to generalize the solution: instead of

       count(current-group()) = $number-of-tables

    you want something like

       count(current-group()/parent::table) = $number-of-tables

    relying on the fact that "/" eliminates duplicates.

That last line has me puzzled Mike. Would someone expand please,
for the uninitiated? In your previous emails you didn't say how
the $number-of-tables variable was defined, same way?



regards DaveP

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-2013 All Rights Reserved.