IMPORTANT:
this is not a Support Forum! Experienced users might answer from time to time questions posted here. If you need a professional and reliable answer, or if you want to report a bug, please contact Altova Support instead.

How can I disable default schema files? Options · View
tellamon
Posted: Thursday, November 6, 2008 5:15:29 AM
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/* ?
mgruen
Posted: Monday, November 10, 2008 4:11:38 PM
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
Users browsing this topic
guest

Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

Use of the Altova User Forum(s) is governed by the Altova Terms of Use.