Win a copy of Java Mock Exams (software) this week in the Programmer Certification (OCPJP) forum!
    Bookmark Topic Watch Topic
  • New Topic

xsl dynamic extraction of xml data help

Jamil Zakaria
Posts: 7
  • Mark post as helpful
  • send pies
  • Report post to moderator

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"?>
<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>
<Extra-Info>WC 2006 Secretariat SL Gangnam PO Box 305 Seoul 135-603 KOREA +82 2 3476 7700 +82 2 3476 8800 (Fax)</Extra-Info>


the xsl doc....

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

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

Paul Clapham
Posts: 21945
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.
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
the new thread boost feature: great for the advertiser and smooth for the coderanch user
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!