【发布时间】:2018-03-31 09:59:30
【问题描述】:
当前标题
<Invoice xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:noNamespaceSchemaLocation="Factuur_insbou003.xsd">
新标题
<Invoice xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.gs1.nl/factuur/insbou/004"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://www.gs1.nl/factuur/insbou/004
Factuur_insbou004.xsd">
我试过了:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<xsl:output method="xml" indent="yes" encoding="UTF-8"/>
<xsl:template match="/*[local-name()= 'Invoice']">
<Invoice xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns="http://www.gs1.nl/factuur/insbou/004"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<xsl:copy-of select="node()|@*"/>
</Invoice>
</xsl:template>
</xsl:stylesheet>
你是对的(删除了错误的代码),我的问题是创建 xmlns="http://www.gs1.nl/factuur/insbou/004"。希望您能够帮助我。谢谢
【问题讨论】:
-
不清楚是什么问题……
-
问题:我无法添加xmlns="gs1.nl/factuur/insbou/004"
标签: xml xslt header namespaces root