XML 值包含 xml 字符



>实际上,XML 是作为输入 XML 属性的值传递的。请帮助使用 XSLT 1.0 获取 XML 值

<Root>
<Element1 ProductDetails="<Input xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Amount="15632" Product="Pencil"></Input>"/>
</Root>

我只需要获取"产品详细信息"属性的值。 即仅使用 XSLT 1.0 的以下部分

<Input xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" Amount="15632" Product="Pencil"></Input>

检查一下:-

<xsl:value-of select="@ProductDetails"/>

最新更新