xslt (table) by matching the attribute value.
- by Magesh
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>