2017-09-07 15 views
1

xs3pでスキーマのドキュメントを生成したかっただけです。xs3p:include-tagsを扱う

問題は、私が理解する限り、スキーマがいくつかのファイルに分割され、xs3pがマスターファイルのインクルードタグを処理しなかったことです。結果はルート要素のみを含むドキュメントです。

私は正確に何をしましたか?

  1. は、私は私が呼ば
  2. ディレクトリにすべてのスキーマファイルをコピーし
  3. 特定のディレクトリにxs3p-ダウンロードを解凍したsaxonb-XSLT master.xsd xs3p.xsl> doku.html(Ubuntuの下あなたが信頼できるかどうか)

私に何か助けてもらえますか? - どのようにこの作品だろう

  1. プロセスをxs3p作る単一のものにすべてのxsd-ファイルの統合などがタグ
  2. :私はこの問題を解決するには、2つの行がある、と仮定しますか?

ありがとうございます!あなたは、次のXSLを設定する必要が

答えて

1

:xs3p.xslでのparam:

<!-- 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> 

+0

ありがとうございました! – jetrca