10-18-2008 08:12 AM
10-23-2008 11:50 AM
<xs:element name="date" type="xs:date"/>
<xs:include schemaLocation="/list-lookup-pages/products.xsd"/>
The URL references a resource that can be found on the AVM staging sandbox. It will use the preview tomcat server to evaluate and return the results of this resource for you. This means that you can actually refer to a JSP instead of a static XSD fragment. Like so:<xs:include schemaLocation="/list-lookup-pages/products.xsd.jsp"/>
As long as the results from the JSP page is a valid XSD inclusion, then that's fine. So, you can write code within the JSP that makes the appropriate calls to your database and constructs well-formed XSD output.
<?xml version="1.0"?>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.com/"
xmlns:prodlist="http://www.ixxus.co.uk/myproject/prodlist"
xmlns:product="http://www.ixxus.co.uk/myproject/product"
targetNamespace="http://www.ixxus.co.uk/myproject/product"
elementFormDefault="qualified">
<xs:import schemaLocation="/list-lookup-pages/products.xsd.jsp" namespace="http://www.ixxus.co.uk/myproject/prodlist'/>
<xs:element name="product">
<xs:complexType>
<xs:sequence>
<xs:element name="quantity" type="xs:integer"/>
<xs:element name="product" type="prodlist:prodlookup" minOccurs="1" maxOccurs="unbounded"/>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:alf="http://www.alfresco.com/"
xmlns:prodlist="http://www.ixxus.co.uk/myproject/prodlist"
targetNamespace="http://www.ixxus.co.uk/myproject/prodlist"
elementFormDefault="qualified">
<xs:simpleType name="prodlookup">
<xs:restriction base="xs:normalizedString">
<xs:enumeration value="Product 1"/>
<xs:enumeration value="Product 2"/>
<xs:enumeration value="Product 3"/>
<xs:enumeration value="Product 4"/>
<xs:enumeration value="Product 5"/>
</xs:restriction>
</xs:simpleType>
</xs:schema>
10-25-2008 03:14 AM
12-12-2008 02:31 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.