xslt (table) by matching the attribute value.

Posted by Magesh on Stack Overflow See other posts from Stack Overflow or by Magesh
Published on 2010-03-14T13:25:48Z Indexed on 2010/03/14 13:35 UTC
Read the original article Hit count: 521

Filed under:
|
|

i need to generate an xsl table for the xml below , for atrributes fname and lname.. i have done something worng in xpath i guess.could someone help me out writing an xsl table for the xml below..

<sparql>
-
<head>
<variable name="s"/>
<variable name="fname"/>
<variable name="lname"/>
</head>
-
<results>
-
<result>
-
<binding name="s">
<uri>http://tn.gov.in/Person/41</uri>
</binding>
-
<binding name="fname">
<literal>Gayathri</literal>
</binding>
-
<binding name="lname">
<literal>Vasudevan</literal>
</binding>
</result>
-
<result>
-
<binding name="s">
<uri>http://tn.gov.in/Person/43</uri>
</binding>
-
<binding name="fname">
<literal>Vivek</literal>
</binding>
-
<binding name="lname">
<literal>Vasudevan</literal>
</binding>
</result>
-
<result>
-
<binding name="s">
<uri>http://tn.gov.in/Person/37</uri>
</binding>
-
<binding name="fname">
<literal>Magesh</literal>
</binding>
-
<binding name="lname">
<literal>Vasudevan</literal>
</binding>
</result>
-
<result>
-
<binding name="s">
<uri>http://tn.gov.in/Person/39</uri>
</binding>
-
<binding name="fname">
<literal>Vasudevan </literal>
</binding>
-
<binding name="lname">
<literal>Srinivasan</literal>
</binding>
</result>
</results>

© Stack Overflow or respective owner

Related posts about xpath-expression

Related posts about Xml