Hello Jane, If you are still in the exploratory phase, you may be interested to look into Chiba: http://chiba.sourceforge.net/index.html Andrew
On 5/6/09, Jane Wang <[email protected]> wrote: > > Hi, > > I am new to XForm, and need to use it to construct new metadata editor in > Muradora. I stumbled upon this issue of creating a hierarchical dropdown > list. I have an xml file contains the controlled vocabulary of the drop > down, and those values have parent-child relationship. I googled on the > issue and found that Orbeon Xform supports something like this: > > <xforms:select1 > ref="instance('qssdl-instance')/educationLevel" > appearance="minimal"> <xforms:label > class="mods-label">Education Level:</xforms:label> > <xforms:item> > <xforms:label>Choose One...</xforms:label> > <xforms:value/> > </xforms:item> > <xforms:itemset > nodeset="instance('vocabulary-instance')//(educationLevel|sub-educationLevel)"> > <xforms:label ref="@label"/> > <xforms:value ref="@id"/> > </xforms:itemset> > </xforms:select1> > > And my xml file contains data in the following format: > > <educationLevels> <educationLevel id="Pre-Kindergarten" > label="Pre-Kindergarten" /> <educationLevel id="Elementary School" > label="Elementary School" /> <educationLevel id="Middle School" > label="Middle School" /> <educationLevel id="High School" label="High > School" /> <educationLevel id="Higher Education" label="Higher > Education"> <sub-educationLevel id="Undergraduate_Lower" > label="Undergraduate (Lower Division)" /> <sub-educationLevel > id="Undergraduate_Upper" label="Undergraduate (Upper Division)" /> > <sub-educationLevel id="Technical Education_Lower" label="Technical > Education (Lower Division)" /> <sub-educationLevel id="Technical > Education_Upper)" label="Technical Education (Upper Division)" /> > <sub-educationLevel id="Graduate_Professional" label="Graduate/Professional" > /> </educationLevel> > </educationLevels> > > Why the actual browser picks up all the values, but it is not displayed in > a hierarchical fashion. My questions are: > > > Has anyone tried this approach? If so, what is issue with my code? > It seems that even this works, it can only support up to 2 levels of > hierarchy. Is there any other way to implement hierarchical (without level > limitation) dropdown in Xform? Maybe separate dropdowns for different > levels? > > Any suggestion or sample code is appreciated. > > Thanks. > > Jane > > > --------------------------------------------- > Jane Wang > Computing and Network Services > ICPSR, University of Michigan > PO Box 1248 > Ann Arbor, MI 48106-1248 > Tel: 734-763-8992 > Email: [email protected] > --------------------------------------------- > > > > ------------------------------------------------------------------------------ > The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your > production scanning environment may not be a perfect world - but thanks to > Kodak, there's a perfect scanner to get the job done! With the NEW KODAK > i700 > Series Scanner you'll get full speed at 300 dpi even with all image > processing features enabled. http://p.sf.net/sfu/kodak-com > _______________________________________________ > Fedora-commons-developers mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers > > ------------------------------------------------------------------------------ The NEW KODAK i700 Series Scanners deliver under ANY circumstances! Your production scanning environment may not be a perfect world - but thanks to Kodak, there's a perfect scanner to get the job done! With the NEW KODAK i700 Series Scanner you'll get full speed at 300 dpi even with all image processing features enabled. http://p.sf.net/sfu/kodak-com _______________________________________________ Fedora-commons-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/fedora-commons-developers
