2012-07-17 104 views

回答

0

也許像Altova的SchemaAgent的工具將幫助。

或者在XSLT中編寫你自己的依賴分析器。例如:

<xsl:variable name="docs" select="collection('.?select=*.xsd')"/> 

<xsl:function name="f:uses" as="document-node()*"/> 
    <xsl:param name="schema" as="document-node()"/> 
    <xsl:sequence select="for $h in $schema/*/(xs:include/xs:import/xs:redefine) 
         return doc(@href)"/> 
</xsl:function> 

它給你直接使用的文件,然後遞歸應用這個函數會給你間接使用的文件。