【发布时间】:2013-11-28 12:51:29
【问题描述】:
我正在尝试从外部 xsd 文件中检索类型定义。在这个例子中,我的$attType 有一个命名空间前缀。但是在我用来获取定义的 XPath 中,我不需要前缀。
问题是:如何?
<xsl:copy-of select="document('../file.xsd')//xs:simpleType[@name=$attType]" />
【问题讨论】:
-
我采用了肮脏的解决方案:substring-after($attType,':')