xs3p:处理include-tags
问题描述:
我只是想用xs3p生成一个schema的文档。xs3p:处理include-tags
据我了解,问题是架构被拆分成几个文件,并且xs3p没有处理主文件的include-tags:结果是只包含根元素的文档。
我做了什么?
- 我解压xs3p下载到某个目录
- 我复制的所有架构文件到该目录
- 我叫saxonb,XSLT master.xsd xs3p.xsl> doku.html(Ubuntu下值得信赖的,如果有的话)
你能给我什么帮助吗?我认为,有两条线来解决这个问题:
- 制作xs3p过程中,包括标签
- 集成所有XSD的文件到一个单一的一个 - 如何将这项工作?
提前致谢!
答
你必须设置以下的xsl:PARAM在xs3p.xsl:
<!-- If 'true', searches 'included' schemas for schema components
when generating links and XML Instance Representation tables. -->
<xsl:param name="searchIncludedSchemas">true</xsl:param>
<!-- If 'true', searches 'imported' schemas for schema components
when generating links and XML Instance Representation tables. -->
<xsl:param name="searchImportedSchemas">true</xsl:param>
<!-- File containing the mapping from file locations of external
(e.g. included, imported, refined) schemas to file locations
of their XHTML documentation. -->
<xsl:param name="linksFile">xs3p_links.xml</xsl:param>
你列入/导入的模式必须已变成了一个my_transformed_included_schema.html文件,你需要定义一个xs3p_links。 XML文件以一些进口/包括模式分配给他们的位置,如:
<?xml version="1.0"?>
<links xmlns="http://titanium.dstc.edu.au/xml/xs3p">
<schema file-location="my-included-schema.xsd" docfile-location="./my_transformed_included_schema.html"/>
</links>
希望这将帮助!
谢谢你的帮助! – jetrca