xslt reading multiple instances of a tag
- by shashank saket
hello,
my xml file is smth like this..
<rdf:RDF
<rdf:Description rdf:about="........">
<j.0:property rdf:resource="....."/>
<j.0:property rdf:resource=....."/>
<j.0:property rdf:resource="........"/>
</rdf:Description>
</rdf:RDF>
now in my xsl sheet i need to retrieve the values of all the "j.0:property" tags..
i am using something like this:
<xsl:apply-templates select="j.0:property"/>
<xsl:text><xsl:value-of select="/rdf:RDF/rdf:Description/j.0:propert /@rdf:resource"/></xsl:text>
</xsl:template>
but then it returns the same value 3 times..the value being the value of the first property encountered..
kindly help as to how i can get the value for each property.