xslt reading multiple instances of a tag

Posted by shashank saket on Stack Overflow See other posts from Stack Overflow or by shashank saket
Published on 2010-04-08T07:59:59Z Indexed on 2010/04/08 8:03 UTC
Read the original article Hit count: 334

Filed under:
|
|
|

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.

© Stack Overflow or respective owner

xslt reading multiple instances of a tag

Posted by shashank saket on Stack Overflow See other posts from Stack Overflow or by shashank saket
Published on 2010-04-08T06:05:54Z Indexed on 2010/04/08 6:13 UTC
Read the original article Hit count: 334

Filed under:
|
|
|

hello, my xml file is smth like this..

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: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.

© Stack Overflow or respective owner

Related posts about xslt

Related posts about multiple