Rank: Newbie
Joined: 11/6/2008 Posts: 2 Location: South Korea
|
I have converted the ODF 1.1 spec(RelaxNG) to the XML Schema(xsd). I have loaded the converted files in XMLSpy and it gives errors like
File C:\MyFolder\xlink.xsd is not valid. 'xlink:href' is already declared in schema document 'C:\Program Files\Altova\XMLSpy2008\schemas/math/common/xlink-href.xsd'. Error location: xs:schema / xs:attribute Details sch-props-correct.2: 'xlink:href' is already declared in schema document 'C:\Program Files\Altova\XMLSpy2008\schemas/math/common/xlink-href.xsd'.
I think I can avert the problem by renaming CoreCatalog.xml to prevent loading in XMLSpy. Or is there any option in the tool disabling the default behavior of loading schemafiles /Schema/* ?
|
Rank: Member
Joined: 7/5/2005 Posts: 13 Location: AT
|
Renaming the CoreCatalog would do it - but you would be better served by
1) writing a CustomCatalog overriding or redirecting the links that are duplicate definitions 2) editing the coreCatalog to comment out the duplicates 3) editing your generated schema file to remove the duplicates.
You might find that there are other definitions in the core catalog that you need so deleting it can cause problems.
regards
|