Iam trying to generate
wml.xsd using xjc, after adding
<xsd:import id="m" namespace="http://schemas.openxmlformats.org/officeDocument/2006/math" schemaLocation="shared-math.xsd" />
But Iam unsuccessful.Not sure what Iam missing?
in my shared-math.xsl I have
<xsd:schema targetNamespace="http://schemas.openxmlformats.org/officeDocument/2006/math"
	xmlns="http://schemas.openxmlformats.org/wordprocessingml/2006/main"
        xmlns:m="http://schemas.openxmlformats.org/officeDocument/2006/math" 
        xmlns:w="http://schemas.openxmlformats.org/officeDocument/2006/math" 
        xmlns:xsd="http://www.w3.org/2001/XMLSchema" attributeFormDefault="qualified" blockDefault="#all" elementFormDefault="qualified">
If I change xmlns:xsd to http://schemas.openxmlformats.org/offic ... /2006/math then , all these errors disappear but I get
org.xml.sax.SAXParseException: Unexpected <xsd:schema> appears at line 4 column 157
Thanks in Advance,
==============================================
[ERROR] undefined simple type 'ST_Integer255'
  line 16 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Integer2'
  line 32 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_SpacingRule'
  line 48 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_UnSignedInteger'
  line 61 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Char'
  line 76 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_OnOff'
  line 100 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Shp'
  line 195 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_FType'
  line 229 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_LimLoc'
  line 253 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_TopBot'
  line 277 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Script'
  line 321 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Style'
  line 355 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple type 'ST_Integer255'
  line 362 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Script'
  line 370 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Style'
  line 375 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 384 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 390 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined model group 'EG_ScriptStyle'
  line 396 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_ManualBreak'
  line 399 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 404 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_RPR'
  line 424 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Char'
  line 447 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 452 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_AccPr'
  line 461 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 466 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_TopBot'
  line 475 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 480 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_BarPr'
  line 485 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 490 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 499 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 504 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 509 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_ManualBreak'
  line 514 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 519 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 524 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_BoxPr'
  line 529 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 534 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 543 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 548 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 553 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 558 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 563 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 568 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 573 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 578 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 583 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_BorderBoxPr'
  line 588 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 593 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Char'
  line 602 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Char'
  line 607 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Char'
  line 612 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 617 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Shp'
  line 622 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 627 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_DPr'
  line 632 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 637 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_YAlign'
  line 646 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 651 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 656 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_SpacingRule'
  line 661 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_UnSignedInteger'
  line 666 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 671 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_EqArrPr'
  line 676 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 681 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_FType'
  line 690 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 695 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_FPr'
  line 700 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 705 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 710 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 719 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_FuncPr'
  line 724 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 729 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 734 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Char'
  line 743 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_TopBot'
  line 748 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_TopBot'
  line 753 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 758 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_GroupChrPr'
  line 763 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 768 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 777 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_LimLowPr'
  line 782 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 787 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 792 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_CtrlPr'
  line 801 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_LimUppPr'
  line 806 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 811 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OMathArg'
  line 816 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_Integer255'
  line 825 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_XAlign'
  line 830 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_MCPr'
  line 839 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_MC'
  line 848 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_YAlign'
  line 857 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
[ERROR] undefined simple or complex type 'CT_OnOff'
  line 862 of file:/C:/from_f/ADOC_CONV/DOCX4J/docx4j-2.2.1/trial/shared-math.xsd
			
		
