[Openstack-docs] Singlesourcing w/ Xmetal, using oXygen as interface

Tom Fifield tom at openstack.org
Thu Nov 21 01:15:09 UTC 2013


On 21/11/13 12:11, David Cramer wrote:
> On 11/20/2013 06:54 PM, Andy Dugas wrote:
>> Most of our doc team uses Xmetal and DITA. I understand the need to use
>> oXygen with the plugin.
>>
>> My questions is, XML being XML, if I could use Xmetal locally as an
>> editor, then use oXygen to move the same files in and out of the
>> OpenStack doc repositories. Would our CMS-related tags be accepted (ie,
>> ignored) or would they (or anything else in this scenario) prevent their
>> inclusion in OpenStack docs?
>
> Hi Andy,
> There's no requirement to use Oxygen to edit OpenStack XML and there is
> no integration with Oxygen and git to worry about. You can just use git
> from the command line to do your gerrit reviews.
>
> I haven't used XMetaL in several years, so check with XMetaL support to
> see if they've fixed this, but a mis-feature of XMetaL is that if you
> configure it to pretty-print the XML, then it reformats the entire file
> according to its rules when you open the file. As a result, when you do
> your gerrit review, it will appear as if you touched every line in the
> file and make it impossible to see what you actually changed, so your
> gerrit review would probably die on the vine. The alternative is to
> configure XMetaL not to pretty-print DocBook files. The only down-side
> to this is that where  you do write new content or revise existing
> content, the XML will not be formatted at all. It will be one long line.
>
> Oxygen is much nicer in this respect in that it only reformats the
> elements you actually edit. So you could use Oxygen in conjunction with
> other editors without having Oxygen introduce spurious whitespace
> changes. If you're using a source control system to manage your XML
> files, it's really only feasible to use XMetaL in an environment where
> everyone uses XMetaL and all the versions of XMetaL are configured
> exactly the same way wrt pretty printing.
>
> You should also check to see if XMetaL now supports relaxNG schemas. If
> so, you could validate it against our schema. Back when I used it,
> XMetaL could only use DTDs and w3c schemas (though I think a w3c DocBook
> schema now exists out there somewhere).

Hi Andy,

I just wanted to say welcome to OpenStack! It would be great to work 
with you.


Unlike David, I'm not an XML expert but my acronymn radar picked up that 
your in-house XML might be DITA, which I understand is a "competitor" to 
docbook ;)

If so - David - would we need to get some DITA-Docbook conversion 
scripts happening in the toolchain to make this work?


Regards,


Tom




More information about the Openstack-docs mailing list