Xslt 删除多个标记的名称空间
我刚刚学习了一些xslt语言,我遇到了一个问题。我正在尝试删除此命名空间,但未成功 原始xml:Xslt 删除多个标记的名称空间,xslt,namespaces,xml-namespaces,Xslt,Namespaces,Xml Namespaces,我刚刚学习了一些xslt语言,我遇到了一个问题。我正在尝试删除此命名空间,但未成功 原始xml: <?xml version="1.0" encoding="UTF-8"?> <file_information xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.chellodmc.com/file
<?xml version="1.0" encoding="UTF-8"?>
<file_information xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.chellodmc.com/files/dmc_media_delivery.xsd" xsi:schemaLocation="http://www.chellodmc.com/file0073/dmc_media_delivery.xsd http://www.chellodmc.com/files/dmc_media_delivery.xsd">
<asset_data soa:23946923649236489>
<upn>TEST_Sintec_HD</upn>
<title>NLD_NGC_C_Man United - Chelsea - Sunday @17.00</title>
<version>High Definition</version>
<duration>00:30</duration>
<tc_in>23:00:00:00</tc_in>
<tc_out>23:00:30:00</tc_out>
<aspect_ratio>16X9</aspect_ratio>
<segment>
<sequence>1</sequence>
<tc_in>23:00:00:00</tc_in>
<tc_out>23:00:30:00</tc_out>
<comment></comment>
</segment>
</asset_data>
</file_information>
预期输出xml:
<?xml version="1.0" encoding="UTF-8"?>
<file_information>
<asset_data>
<upn>TEST_Sintec_HD</upn>
<title>NLD_NGC_C_Man United - Chelsea - Sunday @17.00</title>
<version>High Definition</version>
<duration>00:30</duration>
<tc_in>23:00:00:00</tc_in>
<tc_out>23:00:30:00</tc_out>
<aspect_ratio>16X9</aspect_ratio>
<segment>
<sequence>1</sequence>
<tc_in>23:00:00:00</tc_in>
<tc_out>23:00:30:00</tc_out>
<comment></comment>
</segment>
</asset_data>
</file_information>
你有什么建议?
非常感谢 其中是中属性的值,该属性名称中使用的soa前缀的命名空间声明在哪里?XML解析器无法处理发布的示例,因为属性需要有一个值,并且名称空间需要声明。我的第一个建议是向我们展示您迄今为止的尝试。不用担心,伙计们,我找到了解决方案,感谢您的帮助!