Re: Docutils XML namespace?

Guenter Milde via Docutils-users <[email protected]> Wed, 1 Apr 2020 21:12:10 -0000 (UTC)
Newsgroups gmane.text.docutils.user
Message-ID <[email protected]>
On 2020-03-31, engelbert gruber wrote:

> [-- Type: text/plain, Encoding:  --]

> dont know (yet hopefully)
> but what is wrong with  tools/rst2xml.py ?


> On Tue, 31 Mar 2020 at 17:04, Mikhail Edoshin <[email protected]> wrote:

>> Hi Engelbert,

>> I know docutils has a DTD for its XML. Does it have an official XML
>> namespace?

AFAIK, there is no official Docutils namespace name.

>> Context: I'm working with a tool that parses reST files into XML for use
>> in XML workflow. With all-XML workflow it's convenient to use a
>> dedicated namespace for reST, especially if it's reST with custom
>> extensions that may provide their own namespace. (E.g. one of such
>> extensions is going to be a generic '.. object:: XML' that embeds
>> literal foreign XML into reST.) 

Embedding literal XML is possible with ``.. raw::``.
What would a new "object" directive add?

>> I handle the conversion to XML myself
>> and right now I use a private namespace for reST elements. As I'm about
>> to publish the tool I wonder if there's an official reST namespace I
>> should be using instead. The tool is in its infancy and I can always
>> change things later, so it's not urgent.

Günter



_______________________________________________
Docutils-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/docutils-users

Please use "Reply All" to reply to the list.