xsl-list
[Top] [All Lists]

Attribute value

2004-11-25 03:04:23
Hi All,

I have an xml file as:

<file path="c:\test\test001\sec1.htm">
<top>
<p>asafdsf</p>
<keys>
<key>fdsfdfdf</key>
<key>kjkhkhhj</key>
</keys>
<top>
</file>
<file path="c:\test\test001\sec2.htm">
<top>
<p>asafdsf</p>
<keys>
<key>fdsfdfdf</key>
<key>kjkhkhhj</key>
</keys>
<top>
</file>

And so on....

I am trying to get the output as:

<html><body>
<ul><li> 
<test name=Name value="fdsfdfdf"/>
<test name=Name value=" kjkhkhhj "/>
<test name="local" value="c:\test\test001\sec1.htm"/>
</li>
<li> 
<test name=Name value="fdsfdfdf"/>
<test name=Name value="kjkhkhhj"/>
<test name="NAME" value="c:\test\test001\sec2.htm"/>
</li>
</ul>
</body></html>


When I am searching for key value from particular file the @path value
should come in value="" attribute.


How should i get this?

Thanks,
Shailesh




--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>
  • Attribute value, Shailesh Shinde <=