XHTML 5 document not behaving as XML
-
- Posts: 1
- Joined: Fri Aug 09, 2019 4:44 pm
XHTML 5 document not behaving as XML
Hi
I am working on an XHTML5 document and, particularly in Author mode, the document is not being treated as an XML document.
The document starts with the required bits to identify it as an XHTML5 document (I used the framework template):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
I am using the *.html file extension.
I am experiencing a number of things, including:
I am using XML Editor 21.1, build 2019071807.
Is there anything I can do to improve things? I am close to switching to another Editor.
I am working on an XHTML5 document and, particularly in Author mode, the document is not being treated as an XML document.
The document starts with the required bits to identify it as an XHTML5 document (I used the framework template):
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
I am using the *.html file extension.
I am experiencing a number of things, including:
- Copy and paste in Author mode, the pasted content is stripped of all markup
- Empty namespace attributes are being added randomly (xmlns="")
- Tag completion is working randomly (in text mode and author mode)
I am using XML Editor 21.1, build 2019071807.
Is there anything I can do to improve things? I am close to switching to another Editor.
-
- Posts: 388
- Joined: Thu Jul 01, 2004 12:29 pm
Re: XHTML 5 document not behaving as XML
Hello,
Thanks for your feedback.
If you are editing an XHTML document I recommend to use the XHTML Editor. By default the ".html" extension is associated with the HTML Editor, and there are some issues with the editing in the HTML Editor Author page (they will be fixed for the next Oxygen release).
In order to open your file directly in the XHTML Editor, you can go to the Project View, select the file, and use the "Open With->Internal Editor" contextual menu action. In the "Open as" dialog select "XHTML" as editor to open with. You can also check "Associate file type with editor" in case you always want to to open the ".html" files in the XHTML Editor.
Another way to change the association is to go to Options->Preferences dialog, then select "File Types" options page. In the option page select and edit the "html" extension association, and change the editor to XHTML Editor. You can do the same thing for the "htm" extension.
Best Regards,
Octavian
Thanks for your feedback.
If you are editing an XHTML document I recommend to use the XHTML Editor. By default the ".html" extension is associated with the HTML Editor, and there are some issues with the editing in the HTML Editor Author page (they will be fixed for the next Oxygen release).
In order to open your file directly in the XHTML Editor, you can go to the Project View, select the file, and use the "Open With->Internal Editor" contextual menu action. In the "Open as" dialog select "XHTML" as editor to open with. You can also check "Associate file type with editor" in case you always want to to open the ".html" files in the XHTML Editor.
Another way to change the association is to go to Options->Preferences dialog, then select "File Types" options page. In the option page select and edit the "html" extension association, and change the editor to XHTML Editor. You can do the same thing for the "htm" extension.
Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
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