Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Paul Clapham
  • Devaka Cooray
  • Bear Bibeault
Sheriffs:
  • Junilu Lacar
  • Knute Snortum
  • Liutauras Vilda
Saloon Keepers:
  • Ron McLeod
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Piet Souris
Bartenders:
  • salvin francis
  • Carey Brown
  • Frits Walraven

xsl dynamic extraction of xml data help

 
Greenhorn
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator
hi,

I'm new to this forum and to xsl and xml.

I've a got a fairly large xml doc which I want to be able to manipulate using xsl.

However I want the user to decide how to manipulate using html forms i.e. what search to do via date, name, key word.

However I'm unsure how to get the information from the form and place it into the xsl doc. Can anyone help?

here is some of my code

<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" href="xsl.xsl"?>
<Conferences>
<Conference>
<Name>2006 World Congress on Medical Physics and Biomedical Engineering (W2006)</Name>
<Dates>27 Aug - 01 Sep 2006</Dates>
<Location>COEX Convention & Exhibition Center Seoul, Korea</Location>
<OrgUrl>http://www.wc2006-seoul.org/</OrgUrl>;
<Extra-Info>WC 2006 Secretariat SL Gangnam PO Box 305 Seoul 135-603 KOREA +82 2 3476 7700 +82 2 3476 8800 (Fax) wc2006@koconex.com</Extra-Info>
<SouceUrl>http://webapps1.ieee.org/conferenceSearch/details.do;jsessionid=G26K4CPvcs4skypJNbn063HGmGb3y1G5HxdnP9R5GfK6vLvlmR5v!-1298155915!1080164783?tagNo=10454</SouceUrl>;
</Conference>
.....

.....
</Conferences>


the xsl doc....

<?xml version="1.0" encoding="UTF-8" ?>
- <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">;
- <xsl:template match="/">
- <html>
- <body>
<h2>Ur Search results</h2>
- <table border="1">
- <tr bgcolor="#9acd32">
<th>Name</th>
<th>Dates</th>
<th>Location</th>
<th>Orginial URL</th>
<th>Extra Information</th>
<th>Source URL</th>
</tr>
- <xsl:for-each select="Conferences/Conference">
- <tr>
- <td>
<xsl:value-of select="Name" />
</td>
- <td>
<xsl:value-of select="Dates" />
</td>
- <td>
<xsl:value-of select="Location" />
</td>
- <td>
<xsl:value-of select="OrgUrl" />
</td>
- <td>
<xsl:value-of select="Extra-Info" />
</td>
- <td>
<xsl:value-of select="SouceUrl" />
</td>
</tr>
</xsl:for-each>
</table>
</body>
</html>
</xsl:template>
</xsl:stylesheet>

for exampe <xsl:for-each select="Conferences/Conference[name="information posted from the form]">.... but how to get the information from the form??

thanks in advance!.

Jam
 
Marshal
Posts: 25427
65
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
  • Report post to moderator
"Jam jam", please do not post duplicate questions. It leads to confusion and wastes the time of people who might want to answer. Please continue with the post in XML and Related Technologies.
 
It is sorta covered in the JavaRanch Style Guide.
    Bookmark Topic Watch Topic
  • New Topic