0

我使用什么 XPath 来查询下面 xml 中的信息节点?我在 XMLSpy 中尝试了不同的表达式,但没有任何效果。

<root xmlns="tempuri.org" xmlns:p="http://nonamespace.org/std/Name/2006-10-18/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<item xmlns="">
    <info>blah blah</info>
    <date>2009-07-27 00:00:00</date>
</item>

4

1 回答 1

0

你可以这样做

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

<xsl:template match="/">
     <xsl:value-of select="a:root/item/info"/>
</xsl:template>
于 2009-07-27T08:43:45.510 回答