简体   繁体   English

将XSD文档转换为DocBook

[英]Convert XSD documentation into DocBook

I've been looking for a template to achieve this. 我一直在寻找一个模板来实现这一目标。 Apparently, only commercial applications, such as oXygen can do that. 显然,只有商业应用程序,如oXygen才能做到这一点。

Is there any free tool that can do it? 有没有可以做到的免费工具? Or at least it would be great to have a base template to customize instead of writting it from scratch. 或者至少有一个基本模板可以自定义而不是从头开始编写它会很棒。

Closest tip I found in SO is not very promising . 我在SO中找到的最近的提示并不是很有希望

First of all, OxygenXML has a free trial license that will not watermark your output in any way. 首先,OxygenXML有免费试用许可证,不会以任何方式为您的输出加水印。 Probably the quickest way. 可能是最快捷的方式。 Still, I am a bit curious why Docbook in particular - it is an intermediary format not meant for end user user consumption, I guess the idea is you want to then produce a nice looking PDF and HTML out of that? 不过,我有点好奇为什么Docbook特别是 - 它是一种不适合最终用户用户消费的中间格式,我想这个想法是你想要生成一个漂亮的PDF和HTML吗? If that's the case, not a bad plan. 如果是这样,那不是一个糟糕的计划。 Also it's not a whole lot of work to write your own XSL stylesheet to do that, you just need to map: complexType and simpleType and element to db:section xs:name to db:title and xd:annotation to para then you can process this with free tools like saxon and docbook toolkit. 编写自己的XSL样式表也不是很多工作,你只需要将: complexTypesimpleType以及element映射到db:section xs:name to db:titlexd:annotation to para然后你可以处理这与免费工具,如撒克逊和docbook工具包。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM