Empty xmlns generated by actions
Having trouble installing Oxygen? Got a bug to report? Post it all here.
-
- Posts: 22
- Joined: Fri Aug 09, 2013 11:03 am
Empty xmlns generated by actions
Hi guys,
I have an add-on XSD with the following header:
Eventhough I have the elementFormDefault="qualified", Author actions generate: xmlns="" when a tag is inserted; for example my "bold" action is define to surround with the tag <b/> (which works fine in the document), but in fact it generates <b xmlns=""/>, which breaks my document.
I know I can specify that the insert fragment should be <b xmlns="http://www.oxygenxml.com/ns/labtest"/> but that will make for heavy documents.
Thanks for any help,
Yann
I have an add-on XSD with the following header:
Code: Select all
<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified"
targetNamespace="http://www.oxygenxml.com/ns/labtest"
xmlns="http://www.oxygenxml.com/ns/labtest">
I know I can specify that the insert fragment should be <b xmlns="http://www.oxygenxml.com/ns/labtest"/> but that will make for heavy documents.
Thanks for any help,
Yann
-
- Posts: 9449
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Empty xmlns generated by actions
Hi Yann,
When defining the XML fragment which will be inserted by an Author Operation that fragment needs to have specified on it the proper namespaces declarations. So indeed it has to be defined something like:
But when the fragment gets inserted, if the namespace mapping is already available in the insertion context the extra xmlns="http://www.oxygenxml.com/ns/labtest" attribute will not be added to the final XML content.
Regards,
Radu
When defining the XML fragment which will be inserted by an Author Operation that fragment needs to have specified on it the proper namespaces declarations. So indeed it has to be defined something like:
Code: Select all
<b xmlns="http://www.oxygenxml.com/ns/labtest"/>
Regards,
Radu
Radu Coravu
<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)
- ↳ Artificial Intelligence (AI Positron Assistant add-on)
- ↳ 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