You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@xmlbeans.apache.org by sh...@alpine-la.com on 2004/08/13 10:49:34 UTC

Unable to generate code for VoiceXML

                                                                                                                                       
                      Shreesh Holla                                                                                                    
                                               To:       xmlbeans-user@xml.apache.org                                                  
                      08/13/2004 12:43         cc:                                                                                     
                      AM                       Subject:                                                                                
                                                                                                                                       
                                                                                                                                       







Hello,

I've been looking at XMLbeans( superb!) and specifically am interested in
getting the JAVA binding for voicexml related standards. I'm not an expert
in XML and have not been able to successfully generate JAVA code from
scomp. I believe there is some feature that is not supported by XMLbeans
and that's why this is happening. Could someone please advise:

1. If they have generated code for VoiceXML 2.0, X+V 1.1 - how did they do
it?
2. If not possible, do you think any upcoming release of XMLBEans would
achieve this?
3. If neither of the above are possible, could someone point me at a
suitable XML binding framework?

I've included the dumps of the output from both runs - VoiceXML and X+V
when I ran it.

Thanks,

Shreesh
----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
VoiceXML dump

C:\xmlbeans-1.0.3\schemas\vxml-schema> ..\..\bin\scomp -src src -out
vxml.jar -
erbose vxml.xsd
Loading schema file vxml.xsd
Loading referenced file vxml-datatypes.xsd
Loading referenced file vxml-attribs.xsd
Loading referenced file vxml-grammar-extension.xsd
Loading referenced file vxml-synthesis-extension.xsd
Loading referenced file vxml-grammar-restriction.xsd
Loading referenced file vxml-synthesis-restriction.xsd
Loading referenced file grammar-core.xsd
Loading referenced file synthesis-core.xsd
Exception in thread "main" java.lang.ClassCastException
        at
org.apache.xmlbeans.impl.schema.StscTranslator$RedefinitionHolder.co
plainAboutMissingDefinitions(StscTranslator.java:264)
        at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Sts
Translator.java:144)
        at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Sts
Translator.java:60)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl
SchemaTypeSystemCompiler.java:194)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sch
maTypeSystemCompiler.java:144)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCo
piler.java:732)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.
ava:784)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.jav
:264)
X+V dump

C:\xmlbeans-1.0.3\schemas\X+V\SCHEMA> ..\..\..\bin\scomp -src src -out
x+v.jar -
verbose -dl xhtml+voice11.xsd
Loading schema file xhtml+voice11.xsd
Loading referenced file xhtml+voice-vxml.xsd
Loading referenced file xml-events-1.xsd
Loading referenced file xhtml+voice-extension-1.xsd
Loading referenced file framework/xhtml-notations-1.xsd
Loading referenced file framework/xhtml-datatypes-1.xsd
Loading referenced file framework/xhtml-attribs-ext-1.xsd
Loading referenced file xhtml+voice-model-1.xsd
Loading referenced file framework/xhtml-charent-1.xsd
Loading referenced file core/xhtml-text-1.xsd
Loading referenced file core/xhtml-hypertext-1.xsd
Loading referenced file core/xhtml-list-1.xsd
Loading referenced file core/xhtml-ruby-1.xsd
Loading referenced file core/xhtml-struct-1.xsd
Loading referenced file opt/xhtml-pres-1.xsd
Loading referenced file opt/xhtml-link-1.xsd
Loading referenced file opt/xhtml-meta-1.xsd
Loading referenced file opt/xhtml-base-1.xsd
Loading referenced file opt/xhtml-script-1.xsd
Loading referenced file opt/xhtml-image-1.xsd
Loading referenced file opt/xhtml-param-1.xsd
Loading referenced file opt/basic/xhtml-basic-form-1.xsd
Loading referenced file opt/basic/xhtml-basic-table-1.xsd
Loading referenced file vxml-datatypes.xsd
Loading referenced file vxml-attribs.xsd
Loading referenced file vxml-grammar-extension.xsd
Loading referenced file vxml-model-ext-1.xsd
Loading referenced file vxml-exec-1.xsd
Loading referenced file vxml-events-1.xsd
Loading referenced file vxml-form-1.xsd
Loading referenced file vxml-flow-1.xsd
Loading referenced file vxml-filled-1.xsd
Loading referenced file vxml-resource-1.xsd
Loading referenced file core/text/xhtml-blkphras-1.xsd
Loading referenced file core/text/xhtml-blkstruct-1.xsd
Loading referenced file core/text/xhtml-inlphras-1.xsd
Loading referenced file core/text/xhtml-inlstruct-1.xsd
Loading referenced file opt/pres/xhtml-blkpres-1.xsd
Loading referenced file opt/pres/xhtml-inlpres-1.xsd
Loading referenced file vxml-grammar-restriction.xsd
Loading referenced file vxml-synthesis-extension.xsd
Loading referenced file grammar-core.xsd
Loading referenced file vxml-synthesis-restriction.xsd
Loading referenced file synthesis-core.xsd
C:\xmlbeans-1.0.3\schemas\X+V\SCHEMA\framework\xhtml-notations-1.xsd:0:
warning:
 Schema <notation> is not yet supported for this release.
C:\xmlbeans-1.0.3\schemas\X+V\SCHEMA\framework\xhtml-charent-1.xsd:0:
warning: S
chema <notation> is not yet supported for this release.
Exception in thread "main" java.lang.ClassCastException
        at
org.apache.xmlbeans.impl.schema.StscTranslator$RedefinitionHolder.com
plainAboutMissingDefinitions(StscTranslator.java:264)
        at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Stsc
Translator.java:144)
        at
org.apache.xmlbeans.impl.schema.StscTranslator.addAllDefinitions(Stsc
Translator.java:60)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compileImpl(
SchemaTypeSystemCompiler.java:194)
        at
org.apache.xmlbeans.impl.schema.SchemaTypeSystemCompiler.compile(Sche
maTypeSystemCompiler.java:144)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.loadTypeSystem(SchemaCom
piler.java:732)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.compile(SchemaCompiler.j
ava:784)
        at
org.apache.xmlbeans.impl.tool.SchemaCompiler.main(SchemaCompiler.java
:264)





- ---------------------------------------------------------------------
To unsubscribe, e-mail:   xmlbeans-user-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-user-help@xml.apache.org
Apache XMLBeans Project -- URL: http://xml.apache.org/xmlbeans/