xmlns needs to be defined as attribute
Having trouble installing Oxygen? Got a bug to report? Post it all here.
xmlns needs to be defined as attribute
Post by MulsP »
I have the following xml document:
<?xml version="1.0" standalone="no"?>
<!DOCTYPE Attesten SYSTEM "SchadeAttest.dtd">
<Attesten xmlns='http://www.datassur.com/'>
<Attest>
....
</Attest>
</Attesten>
but when I try to validate it, I get the following error:
[Message:E Attribute "xmlns" must be declared for element type "Attesten". SystemID:null, Line:3, Column:1]
Can you explain this?
Sincerely,
Patrick muls
<?xml version="1.0" standalone="no"?>
<!DOCTYPE Attesten SYSTEM "SchadeAttest.dtd">
<Attesten xmlns='http://www.datassur.com/'>
<Attest>
....
</Attest>
</Attesten>
but when I try to validate it, I get the following error:
[Message:E Attribute "xmlns" must be declared for element type "Attesten". SystemID:null, Line:3, Column:1]
Can you explain this?
Sincerely,
Patrick muls
Hi,
DTDs are not namespace aware, therefore xmlns is seen as any other attribute and it has to be specified in the DTD in the attribute list of the element that contains it.
You should have in your DTD something like
Best Regards,
George
DTDs are not namespace aware, therefore xmlns is seen as any other attribute and it has to be specified in the DTD in the attribute list of the element that contains it.
You should have in your DTD something like
Code: Select all
<!ATTLIST Attesten
...
xmlns ...
...
>
George
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