Hi,
I created a xsd schema for one of our content types (following the
documentation available at
http://developer.marklogic.com/howto/tutorials/2007-04-schema.xqy) and is
able to validate a sample xml based on the schema. Now, I am trying to
create a web form where we will have content creators submit/edit contents.
In the schema definition i have set up a controlled vocabulary eg.
<xsd:attribute name="type">
        <xsd:simpleType>
            <xsd:restriction base="xsd:string">
                <xsd:enumeration value="news"/>
                <xsd:enumeration value="feature"/>
                <xsd:enumeration value="topic"/>
                <xsd:enumeration value="main"/>
                <xsd:enumeration value="monthly"/>
                <xsd:enumeration value="most-viewed"/>
                <xsd:enumeration value="quickLink"/>
                <xsd:enumeration value="center"/>
            </xsd:restriction>
        </xsd:simpleType>
    </xsd:attribute>
On the webform I want to provide select dropdown for the above. Is there any
specific way i can achieve that? Now, i can always treat the schema as a
normal xml and use xquery to create the webform. 2 reasons i want to avoid
this approach is :
1. the xsd is in the schemas database, so have to deal with xdmp:invoke and
permission issues to read data from another db.
2. was wondering if there was a much more elegant and OOTB approach to it.

Any help will be greatly appreciated.

thanks
Jag
_______________________________________________
General mailing list
[email protected]
http://xqzone.com/mailman/listinfo/general

Reply via email to