Michael, Oh, yes…I forgot to mention earlier: I’d like no two <xf:bind> element tags to be the same; that’s why I was using the distinct-values() function. ~PJC On Thu, Mar 26, 2009 at 1:51 PM, Michael Kay <http://x-query.com/mailman/listinfo/talk> wrote: > > I want the XQuery to determine if the @maxOccurs attribute exists in > an < xs:element > tag somewhere in the schema , and its value isn’t 1. If this > is true, then, for all elements that have a @ref attribute in the schema > (because we now know there’s at least one), the XQuery should get the > string > value of the element’s @ref attribute (what I wanted $name to be), along > with the value of element’s @maxOccurs attribute (what i wanted $max to > be), > and lastly the string value of $max (what I wanted $index_max to be)
Read the original here:
returning elements without duplicates, based on an
XML schema and using an attribute as context node
