Skip to content
This repository has been archived by the owner on Jun 15, 2019. It is now read-only.

functionalModules.xml file saved with invalid schema #1

Open
danguilherme opened this issue Sep 24, 2015 · 0 comments
Open

functionalModules.xml file saved with invalid schema #1

danguilherme opened this issue Sep 24, 2015 · 0 comments
Labels

Comments

@danguilherme
Copy link
Owner

The generated functionalModules.xml is not compliant with the schema it is tested against. The following error occurs when building for Android:

[09-24-2015 10:21:01]Ant build error=The following error occurred while executing this line:
[Project Temp Path]/build/luaandroid/build-jssource.xml:77: The following error occurred while executing this line:
[Project Temp Path]/build/luaandroid/build-jssource.xml:116: The following error occurred while executing this line:
[Project Temp Path]/build/luaandroid/build-jssource.xml:158: org.xml.sax.SAXParseException; systemId: file:[Project Temp Path]/build/luaandroid/dist/[ProjectName]/assets/functionalModules.xml; lineNumber: 1; columnNumber: 20; cvc-complex-type.4: Attribute 'projectName' must appear on element 'functionalModules'.
[09-24-2015 10:21:01]Build Generation failed for platform Android.

The schema is located at [Kony Studio Workspace]/temp/[Project Name]/build/luaandroid/extres/functionalModules.xsd. Content:

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
    <xs:element name="functionalModules">
        <xs:complexType>
            <xs:sequence>
                <xs:element maxOccurs="unbounded" ref="functionalModule" />
            </xs:sequence>
            <xs:attribute name="projectName" use="required"
                type="xs:NCName" />
        </xs:complexType>
    </xs:element>
    <xs:element name="functionalModule">
        <xs:complexType>
            <xs:all>
                <xs:element minOccurs="0" maxOccurs="1" ref="dependentModules" />
                <xs:element minOccurs="0" maxOccurs="1" ref="views" />
                <xs:element minOccurs="0" maxOccurs="1" ref="jsModules" />
            </xs:all>
            <xs:attribute name="loadOnStartUp" type="xs:boolean" />
            <xs:attribute name="name" use="required" type="xs:NCName" />
            <xs:attribute name="init" type="xs:NCName" />
        </xs:complexType>
    </xs:element>
    <xs:element name="dependentModules" type="xs:string" />    
    <xs:element name="views" type="xs:string" />
    <xs:element name="jsModules" type="xs:string" />    
    <!-- 
     <xs:simpleType name="pathVal">
        <xs:restriction base="xs:string">
            <xs:pattern value="[^\s\r\n]+" />
        </xs:restriction>
     </xs:simpleType>

     <xs:simpleType name="NonEmptyString">
        <xs:restriction base="xs:string">
            <xs:minLength value="1" />
            <xs:pattern value="\S+"/>
        </xs:restriction>
    </xs:simpleType>
     -->
</xs:schema>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant