Hi, 
I have searched for any mailing list archive - is there any available???

I want to fill up a combo box with the values of a enumeration list of an 
element. Ist this possible?
It worked with attributes, couldn't work it out with element enumerations.

Here my Element definition

<xs:element name="zeitschrift">
                <xs:simpleType>
                        <xs:restriction base="xs:NMTOKENS">
                                <xs:enumeration value="?StZ"/>
                                <xs:enumeration value="ARD"/>
                                <xs:enumeration value="FJ"/>
                                <xs:enumeration value="SWK"/>
                                <xs:enumeration value="SWI"/>
                                <xs:enumeration value="ecolex"/>
                        </xs:restriction>
                </xs:simpleType>
</xs:element>

And may xml structure

<verweis>
         <artikel>
           <zeitschrift>ARD</zeitschrift>
           <fundstelle>5476/4/2004</fundstelle>
         </artikel>
</verweis>

I tried it with the xpath expression
verweis > artikel > zeitschrift{
    content:    combo-box(values, 
xpath("join(//verweis/artikel/zeitschrift[not(.=following::zeitschrift)], 
'\A')"));
}
Which worked, but as I have about 1000 <zeitschrift> elements, it takes nearly 
10 minutes to walk through

-> maybe there should be an option to just evaluate an xpath run through just 
once and use it for ALL combo boxes

/christoph 



Reply via email to