8,906
社区成员
发帖
与我相关
我的任务
分享
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<xsl:value-of select="people/QA/@*[namespace-uri()='http://www.ouchy.ch1111111' and local-name()='EQID']"/>
</xsl:template>
</xsl:stylesheet>
<?xml version="1.0" encoding="GB2312" standalone="yes"?>
<people pattr="p1">
<title>电动汽车1</title>
<QA xmlns:ouchy="http://www.ouchy.ch1111111" ouchy:EQID="aaa"/>
</people>
xslt.xsl
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<xsl:stylesheet
version="2.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:ouchy="http://www.ouchy.ch1111111"
exclude-result-prefixes="ouchy">
<xsl:output indent="yes"/>
<xsl:template match="/">
<xsl:value-of select="people/QA/@ouchy:EQID"/>
</xsl:template>
</xsl:stylesheet>