hi i am applying a sample XSLT to xml file.but upon applying xslt
i am getting every node results rather than intended xpath expression
node values.
xml file :
<response>
<objectset>
<document>
..
.. some elements
<properties>
<property>
<name>a</name>
</property>
<property>
<name>b</name>
</property>
</properties>
</document>
<document> --2nd
doc element
..
.. some elements
<properties>
<property>
<name>a</name>
</property>
<property>
<name>b</name>
</property>
</properties>
</document>
<document> -- 3rd document element
..
.. some elements
<properties>
<property>
<name>a</name>
</property>
<property>
<name>b</name>
</property>
</properties>
</document>
</objectset>
</response>
xslt File :
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:java="http://xml.apache.org/xslt/java">
<xsl:output method="html" omit-xml-declaration="yes" indent="yes" />
<xsl:template atch="/response/objectset">
<xsl:for-each select="document">
<xsl:for-each select="properties/property">
<xsl:value-of select="name"/>
</xsl:for-each>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet>
please correct this xsl file ...?