[oXygen-user] Namespace prefix unnecessarily added to elements in element list

David Cramer david at thingbag.net
Wed Feb 15 22:50:26 CST 2012


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi there,
I'd like to report an annoyance in oXygen involving namespace prefixes
in the element list. If you have a DocBook file that declares the
following namespaces:

<book xmlns="http://docbook.org/ns/docbook"
      xmlns:db="http://docbook.org/ns/docbook"
      version="5.0"
      xml:id="os-cs-devguide">
...

Then every DocBook element in the element list will be prefixed with
db:. If you remove the xmlns:db="http://docbook.org/ns/docbook". It
would be better if oXygen in this situation just ignored the xmlns:db
declaration and displayed the DocBook elements in the element list
with no prefix.

I currently tell the writers to remove the declaration, but the whole
issue confuses them. The problem is that we have developers who prefer
to use emacs or whatever and have the habit of creating files with a
bunch of namespaces, whether they need them or not (see example
below). I haven't been able to break them of this habit.

<book xmlns="http://docbook.org/ns/docbook"
      xmlns:xlink="http://www.w3.org/1999/xlink"
      xmlns:xi="http://www.w3.org/2001/XInclude"
      xmlns:svg="http://www.w3.org/2000/svg"
      xmlns:m="http://www.w3.org/1998/Math/MathML"
      xmlns:html="http://www.w3.org/1999/xhtml"
      xmlns:db="http://docbook.org/ns/docbook"
      version="5.0"
    xml:id="os-cs-devguide">

Thanks,
David
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.11 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iQEcBAEBAgAGBQJPPIsRAAoJEMHeSXG7afUh14cIAIfuIfGC2KqhJmWhJctwcEbu
7YBjuLtFrmphRU8fgJPb6jHUodgw0ZfcEb9a5D0jvVPk3aL3//G+WGZhWPNAbfk9
otpfXDMV+o+kgcrvhgAyp0K+2VRE7pbP42pmKAayx5dGBnZOd8Cqlx9mLfS5tGtg
RSnYkgT4rcQwyyopeHrW27kaUx7NNsJk6ZeQMWhaHgmDP2/lFCDpwEVABCz2sqW7
DfgWPrkn5nHyv+T22Y9kVboXkRetWA/lZ158HfyjWJfZ07DOSgcuvRQ+JwD9ivBB
+P6iI645RSDdDWlxY7AUP3oYbpsvY+Q8oVOroem2Ml3L6pH5S1lw1uwRVkAQ58M=
=1zWu
-----END PGP SIGNATURE-----


More information about the oXygen-user mailing list