AnsweredAssumed Answered

Problem with the path

Question asked by bribon on Jun 24, 2009
Latest reply on Jul 10, 2009 by bribon

I have two schemas, I'm trying to include one inside the another one. However, I have a problem with the path:

This application.xsd, and includes types.xsd:

<xs:schema elementFormDefault="qualified" xmlns:xs="">
<xs:include schemaLocation="webscript://types.xsd"/>   
  <xs:element name="Application">
        <xs:element name="name" type="shortStr" />
        <xs:element name="shortDesc" type="xs:string" />
        <xs:element name="longDesc" type="xs:string" />
        <xs:element name="logo" type="xs:string" />
        <xs:element name="category" type="xs:string" />
        <xs:element name="url" type="urlStr" />
        <xs:element name="ownerName" type="shortStr" />
        <xs:element name="publicFlag" type="xs:boolean" />
        <xs:element name="privateFlag" type="xs:boolean" />
        <xs:element name="upcomingWidget" type="xs:boolean" />
        <xs:element name="featuredWidget" type="xs:boolean" />
        <xs:element name="downloadLink" type="urlStr" />
        <xs:element name="downloadName" type="shortStr" />
        <xs:element name="videoLink" type="urlStr" />
        <xs:element name="videoName" type="shortStr" />
        <xs:element name="links" type="xs:string" />

This is types.xsd:

<?xml version="1.0" encoding="utf-8" ?>
<xs:schema elementFormDefault="qualified" xmlns:xs="">
   <xs:simpleType name="shortStr">
      <xs:restriction base="xs:normalizedString">
         <xs:minLength value="0"/>
         <xs:maxLength value="25"/>

   <xs:simpleType name="urlStr">
      <xs:restriction base="xs:normalizedString">
         <xs:minLength value="0"/>
         <xs:maxLength value="50"/>

I have the last file in My sandbox, Staging Sandbox and web scripts. I don't know if I can include it from web scripts in the dictionary data, but I read if it's in Staging Sandbox, I just need to include this: <xs:include schemaLocation="webscript://types.xsd"/>. However, I got this mistake:

org.alfresco.web.forms.FormProcessor$ProcessingException: org.alfresco.web.forms.xforms.FormBuilderException: error parsing schema: at line 22 column 55: src-resolve: Cannot resolve the name 'shortStr' to a(n) 'type definition' component.

Please, can someone help me out?? It's very important for me.

Thanks in advance