Do I need a namespace declaration in dita root elements?

Hi all, I am cleaning up DITA files created with FrameMaker. FrameMaker has added a lot of unnecessary attributes, for example. Among others, FM has added an *xmlns:ditaarch* attribute to every top-level dita element such as concept, task or reference. Example: <concept id="id187JBI00EHS" xml:lang="en-US" *xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"*> Can I safely remove this attribute or is it required? Regards, Frank -- *Frank Dissinger* Documentation Manager .................................................................... *CGS Publishing Technologies International GmbH* *Email *frank.dissinger@cgs-oris.com | *Web* www.cgs-oris.com <http://www.cgs-oris.com/> *Address* Kettelerstr. 24 | D-63512 Hainburg | Germany *Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99 *Commercial register* Offenbach, HRB no. 21495 *Managing directors* Bernd Rückert, Christoph Thommessen https://www.cgs-oris.com/Signatur.png <https://www.cgs-oris.com/signatur>

Frank, This is more than you asked for, but here: https://github.com/wendellpiez/XMLNamespaceFixup No you don't need that namespace. Getting rid of it isn't hard if you know what it is, exactly. (The topic of what is a namespace I think I'll leave aside, however.) And XSLT instructions such as xsl:copy and xsl:copy-of frequently permit copy-namespaces="no" to avoid unwanted namespace proliferation. Good luck, Wendell On Wed, Mar 22, 2023 at 10:38 AM Frank Dissinger < frank.dissinger@cgs-oris.com> wrote:
Hi all,
I am cleaning up DITA files created with FrameMaker. FrameMaker has added a lot of unnecessary attributes, for example.
Among others, FM has added an *xmlns:ditaarch* attribute to every top-level dita element such as concept, task or reference. Example:
<concept id="id187JBI00EHS" xml:lang="en-US" *xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/" <http://dita.oasis-open.org/architecture/2005/>*>
Can I safely remove this attribute or is it required?
Regards,
Frank --
*Frank Dissinger*
Documentation Manager
....................................................................
*CGS Publishing Technologies International GmbH*
*Email *frank.dissinger@cgs-oris.com | *Web* www.cgs-oris.com
*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany
*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99
*Commercial register* Offenbach, HRB no. 21495
*Managing directors* Bernd Rückert, Christoph Thommessen
[image: https://www.cgs-oris.com/Signatur.png] <https://www.cgs-oris.com/signatur> _______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user
-- ...Wendell Piez... ...wendell -at- nist -dot- gov... ...wendellpiez.com... ...pellucidliterature.org... ...pausepress.org... ...github.com/wendellpiez... ...gitlab.coko.foundation/wendell...

Hi Frank, One way to check if an attribute is necessary is to see if it's already defined with that certain value in the associated DTDs. If you open the DITA concept for example in Oxygen in the Text mode and place the caret inside the <concept...> tag, then remove the attribute, look in the "Attributes" view, if that specific attribute still appears there with the value grayed out, this means that it's already defined with that value in the associated DTDs and it's not necessary to define it in the XML instance. In your case with "xmlns:ditaarch" which is a prefix namespace mapping declaration it is useless if: 1) It's already declared in the DTDs (which it is). 2) It's not used anywhere in the XML document (and it isn't, there is no "ditaarch:abc='def'" attribute in the XML document). So in your case the prefix namespace declaration is useless in both cases. Regards, Radu Radu Coravu Oxygen XML Editor On 3/22/23 16:38, Frank Dissinger wrote:
Hi all,
I am cleaning up DITA files created with FrameMaker. FrameMaker has added a lot of unnecessary attributes, for example.
Among others, FM has added an *xmlns:ditaarch* attribute to every top-level dita element such as concept, task or reference. Example:
<concept id="id187JBI00EHS" xml:lang="en-US" *xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"*>
Can I safely remove this attribute or is it required?
Regards,
Frank
--
*Frank Dissinger*
Documentation Manager
....................................................................
*CGS Publishing Technologies International GmbH*
*Email *frank.dissinger@cgs-oris.com | *Web* www.cgs-oris.com <http://www.cgs-oris.com/>
*Address* Kettelerstr. 24 | D-63512 Hainburg | Germany
*Phone* +49 6182 9626-27 | *Fax* +49 6182 9626-99
*Commercial register* Offenbach, HRB no. 21495
*Managing directors* Bernd Rückert, Christoph Thommessen
https://www.cgs-oris.com/Signatur.png <https://www.cgs-oris.com/signatur>
_______________________________________________ oXygen-user mailing list oXygen-user@oxygenxml.com https://www.oxygenxml.com/mailman/listinfo/oxygen-user

You can remove it. Best, Kris Kristen James Eberlein Chair, OASIS DITA Technical Committee Owner, Eberlein Consulting LLC kris@eberleinconsulting.com Skype: kriseberlein; voice: +1 (919) 622-1501 From: oXygen-user <oxygen-user-bounces@oxygenxml.com> On Behalf Of Frank Dissinger Sent: Wednesday, March 22, 2023 10:38 AM To: Oxygen User Mailing List <oxygen-user@oxygenxml.com> Subject: [oXygen-user] Do I need a namespace declaration in dita root elements? Hi all, I am cleaning up DITA files created with FrameMaker. FrameMaker has added a lot of unnecessary attributes, for example. Among others, FM has added an xmlns:ditaarch attribute to every top-level dita element such as concept, task or reference. Example: <concept id="id187JBI00EHS" xml:lang="en-US" xmlns:ditaarch="http://dita.oasis-open.org/architecture/2005/"<http://dita.oasis-open.org/architecture/2005/>> Can I safely remove this attribute or is it required? Regards, Frank -- Frank Dissinger Documentation Manager .................................................................... CGS Publishing Technologies International GmbH Email frank.dissinger@cgs-oris.com<mailto:frank.dissinger@cgs-oris.com> | Web www.cgs-oris.com<http://www.cgs-oris.com/> Address Kettelerstr. 24 | D-63512 Hainburg | Germany Phone +49 6182 9626-27 | Fax +49 6182 9626-99 Commercial register Offenbach, HRB no. 21495 Managing directors Bernd Rückert, Christoph Thommessen [https://www.cgs-oris.com/Signatur.png]<https://www.cgs-oris.com/signatur>
participants (4)
-
Frank Dissinger
-
Kristen James Eberlein
-
Oxygen XML Editor Support (Radu Coravu)
-
Wendell Piez