Warning: file_get_contents(/data/phpspider/zhask/data//catemap/0/xml/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Xml XSLT-XSD文件-schema.XSD文件的位置-请建议_Xml_Xslt_Xsd - Fatal编程技术网

Xml XSLT-XSD文件-schema.XSD文件的位置-请建议

Xml XSLT-XSD文件-schema.XSD文件的位置-请建议,xml,xslt,xsd,Xml,Xslt,Xsd,请让我了解代码中提到的schema.xsd文件的位置 <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" xmlns:xs="http://www.w3.org/2001/XMLSchema" exclude-result-prefixes="vmf xs">

请让我了解代码中提到的schema.xsd文件的位置

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 


xmlns:vmf="http://www.altova.com/MapForce/UDF/vmf" 


xmlns:xs="http://www.w3.org/2001/XMLSchema" 


exclude-result-prefixes="vmf xs">


<xsl:output method="xml" encoding="UTF-8" indent="yes"/>



<xsl:template match="/">


<DATA>


<xsl:attribute name="xsi:noNamespaceSchemaLocation" 

namespace="http://www.w3.org/2001/XMLSchema-instance">

schema.xsd


</xsl:attribute>


<ITEMS>


</ITEMS>


</xsl:Stylesheet>

schema.xsd

您可以找到模式的XML模式

但是,您可能不需要它,除非您尝试验证XSD(与使用XSD验证XML文档实例相反)

另请参见:


您不需要访问该文件;大多数情况下,url无效,或无法公开访问;也许这是一个错误。您想实现什么?感谢@RubensFarias刚刚想到查看xsd文件中的模式定义。如果它是一个物理文件,请建议它在哪里