HTML5 and XML
Are you missing a feature? Request its implementation here.
HTML5 and XML
Since oXygen supports both HTML5 and XML, it would be very useful if the two modalities could be used together. For instance, if I create a form with HTML5 and wish to write or read an element that is based on an XML simple type. How do I do it?
Re: HTML5 and XML
Hi,
oXygen does not support HTML5 yet, we support XHTML5. For XHTML5 we provide content completion and validation.
I am not sure I understand your question. My impression is that you want XForms.
Best Regards,
George
oXygen does not support HTML5 yet, we support XHTML5. For XHTML5 we provide content completion and validation.
I am not sure I understand your question. My impression is that you want XForms.
Best Regards,
George
George Cristian Bina
Re: HTML5 and XML
I actually prefer XHTML5 and will correct my question. How does one have XHTML5 interact with XML elements? I do not want XForms because the presence of forms in HTML5 has made XForms obsolete.
There are two levels of XML interacting with XHTML5. The first is to make the XHTML5 and the XML element invisible to each other. This would permit XML elements to be encapsulated in XHTML5 pages by XHTML5 markup elements e.g. <p>text <XML_Element>Element_Value</XML_Element> text</p>
On the XML side, this can be done in xsd1.1 by something like
<xs:openContent mode="interleave">
<xs:any namespace="http://namespace_xhtml5" processContents="strict"/>
</xs:openContent>
Is there an equivalent of openContent in XHTML5?
The other application is using an xml element in an XHTML5 form.
There are two levels of XML interacting with XHTML5. The first is to make the XHTML5 and the XML element invisible to each other. This would permit XML elements to be encapsulated in XHTML5 pages by XHTML5 markup elements e.g. <p>text <XML_Element>Element_Value</XML_Element> text</p>
On the XML side, this can be done in xsd1.1 by something like
<xs:openContent mode="interleave">
<xs:any namespace="http://namespace_xhtml5" processContents="strict"/>
</xs:openContent>
Is there an equivalent of openContent in XHTML5?
The other application is using an xml element in an XHTML5 form.
Re: HTML5 and XML
You can use wildcard patterns also in Relax NG, this is present in almost any Relax NG schema that allows foreign content.
Alternatively you can use NVDL to extract the XHTML part of the document and direct that to the XHTML schema while for content in other namespaces you can either accept that whatever it is or match a specific namespace and validate that with a specific schema for that namespace. In the oXygen sample project I included an NVDL script for XHTML with embedded XForms content and the XHTML part is extracted and validated with the XHTML schema while the XForm content is validated with a different schema. If you do not want to validate the foreign content then you can use the NVDL accept action instead of validate.
Best Regards,
George
Alternatively you can use NVDL to extract the XHTML part of the document and direct that to the XHTML schema while for content in other namespaces you can either accept that whatever it is or match a specific namespace and validate that with a specific schema for that namespace. In the oXygen sample project I included an NVDL script for XHTML with embedded XForms content and the XHTML part is extracted and validated with the XHTML schema while the XForm content is validated with a different schema. If you do not want to validate the foreign content then you can use the NVDL accept action instead of validate.
Best Regards,
George
George Cristian Bina
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