gpt4 book ai didi

xml - 如何将 XSD 文件转换为文档文件

转载 作者:行者123 更新时间:2023-12-04 06:20:10 24 4
gpt4 key购买 nike

这个问题在这里已经有了答案:




10年前关闭。




Possible Duplicates:
How to convert xsd to human readable documentation?
Formatting XSD scheme for peer review



我有一个包含 xsd:annotation 元素的 XSD 文件,其中包含一个 xsd:documentation 元素
<xsd:element name="CompanyId" minOccurs="0">
<xsd:annotation>
<xsd:documentation>The name of the company.
</xsd:documentation>
</xsd:annotation>
<xsd:simpleType>
<xsd:restriction base="xsd:string">
<xsd:minLength value="0"/>
<xsd:maxLength value="40"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:element>

如何将模式放入一个文件(文档、电子表格等)中,以便非技术人员查看模式的内容以更好地了解哪些数据可用?

然后我希望看到字段 CompanyID 包含“公司名称”。如 xsd:documentation 所示。看到长度高达 40 个字符甚至会很高兴。

最佳答案

查看 XML 命名空间的架构,位于

http://www.w3.org/2001/xml.xsd

当您在浏览器中查看它时,它使用客户端 XSLT 样式表显示;您可以使用相同的样式表来浏览您自己的模式。样式表位于

http://www.w3.org/2008/09/xsd.xsl

当然,您可以根据自己的需要调整它,而不是直接使用它。

注:当您点击上面的第一个链接时,请耐心等待。 W3C 故意延迟对此类常用文件请求的响应,以鼓励应用程序维护本地副本。

关于xml - 如何将 XSD 文件转换为文档文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6686124/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com