No Schema or DTD associated....
Having trouble installing Oxygen? Got a bug to report? Post it all here.
No Schema or DTD associated....
Hi everyone,
I am in a Data Management Class at a university and I have an XML project due by the end of this week. I have to submit an xsd,xml, and xsl sheet in a zipped folder. I am having a really hard time validating my xml portion. I keep getting the notification "There is no schema or DTD associated with this document. You can create an association either with the Association Schema action or configuring in the Options the Preferences/Document Type Association List or by creating a validation scenario.
I am not sure what this means. Can anyone help me? Please let me know how I can provide more clarification regarding this matter. Many many thanks in return!
I am in a Data Management Class at a university and I have an XML project due by the end of this week. I have to submit an xsd,xml, and xsl sheet in a zipped folder. I am having a really hard time validating my xml portion. I keep getting the notification "There is no schema or DTD associated with this document. You can create an association either with the Association Schema action or configuring in the Options the Preferences/Document Type Association List or by creating a validation scenario.
I am not sure what this means. Can anyone help me? Please let me know how I can provide more clarification regarding this matter. Many many thanks in return!
Re: No Schema or DTD associated....
Hi,
That means no schema is associated with your XML documented by any means recognized by Oxygen.
To validate your document with a schema in Oxygen you can either (I recommend going with the first):
- manually associate the schema with the document (modifies the document, provides content completion and automatic validation): Open the XML document, go to menu > Document > Schema > Associate Schema and browse for the schema. The schema type will be automatically detected and selected in the combo. This will specify the schema URI and namespace on the root of the XML document.
e.g.
- create a validation scenario (the document remains untouched, provides content completion and automatic validation): Open the XML document and go to menu > Document > Validate > "Configure Validation Scenario(s)" (there's a corresponding action in the toolbar).
In the Configure Validation Scenario(s) dialog press New, choose a name for the scenario and configure the validation unit. Leave the "URL of the file to validate" unchanged (${currentFileURL}) so you can use the scenario for various XML files. Double click on the schema field, select "Use custom schema" and browse for the schema. Close all dialogs with OK.
- use Validate with... The quick way to validate with a schema if you only need to do this once and you won't be needing a scenario is menu > Document > Validate > Validate with... and simply browse and pick the schema.
- create a document type which associates a schema with documents of the specified type (Options > Preferences, Document Type Association). Multiple criteria can be used for identifying the XML as a document type that should be associated with your schema in the Association rules tab. Usually a root element and/or a namespace are required but also works with a public ID or a specific attribute on the document root of the XML. You can then pick the schema in the Schema tab. There are plenty of other document type settings, but they are outside the scope of this guide.
Regards,
Adrian
That means no schema is associated with your XML documented by any means recognized by Oxygen.
To validate your document with a schema in Oxygen you can either (I recommend going with the first):
- manually associate the schema with the document (modifies the document, provides content completion and automatic validation): Open the XML document, go to menu > Document > Schema > Associate Schema and browse for the schema. The schema type will be automatically detected and selected in the combo. This will specify the schema URI and namespace on the root of the XML document.
e.g.
Code: Select all
<root xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="myNamespace mySchemaURI.xsd">
In the Configure Validation Scenario(s) dialog press New, choose a name for the scenario and configure the validation unit. Leave the "URL of the file to validate" unchanged (${currentFileURL}) so you can use the scenario for various XML files. Double click on the schema field, select "Use custom schema" and browse for the schema. Close all dialogs with OK.
- use Validate with... The quick way to validate with a schema if you only need to do this once and you won't be needing a scenario is menu > Document > Validate > Validate with... and simply browse and pick the schema.
- create a document type which associates a schema with documents of the specified type (Options > Preferences, Document Type Association). Multiple criteria can be used for identifying the XML as a document type that should be associated with your schema in the Association rules tab. Usually a root element and/or a namespace are required but also works with a public ID or a specific attribute on the document root of the XML. You can then pick the schema in the Schema tab. There are plenty of other document type settings, but they are outside the scope of this guide.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: No Schema or DTD associated....
Hi Sir,
I have a ditamap file and i have created another footer.xml file for xhtml footer. I am facing same problem " No Schema or DTD associated.
Not getting it exactly . Kindly help
I have a ditamap file and i have created another footer.xml file for xhtml footer. I am facing same problem " No Schema or DTD associated.
Not getting it exactly . Kindly help
Rohit Ghosh
Jr. Software Developer
Jr. Software Developer
Re: No Schema or DTD associated....
Hi,
What does the footer.xml file contain?
If there's no schema associated, it's normal to give you that. See the instructions above.
Note that this may not be a problem. Header and footer files are usually just snippets that are not always valid by themselves, only in context.
Regards,
Adrian
What does the footer.xml file contain?
If there's no schema associated, it's normal to give you that. See the instructions above.
Note that this may not be a problem. Header and footer files are usually just snippets that are not always valid by themselves, only in context.
Regards,
Adrian
Adrian Buza
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
<oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
Re: No Schema or DTD associated....
Hi Sir,
Thank You for your help , I found the solution .
Thank You for your help , I found the solution .
Rohit Ghosh
Jr. Software Developer
Jr. Software Developer
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service