A
Anon
Hi, to not deceive you this is a school project. We are developing some XSLT
to format some data in HTML for Internet Explorer. The work uses XSLT and
CSS and XML. The objective is to write a search form, the user enters
details in a browser window, presses the "search" button, and books that
match the search criteria are displayed in a table formatted with pretty
colours.
We have a problem.
We thought the XML searched by the application looked like this:
<BOOKS>
<BOOK isbn="0-671-00174-4">
<TITLE>Gullivers Travels</TITLE>
</BOOK>
<BOOK isbn="1-84466-725-1">
<TITLE>Hansel and Gretel</TITLE>
</BOOK>
<BOOKS>
To search, to display the book title in a table, we were using for example
the following XPATH
/BOOKS/BOOK[@isbn="0-671-00174-4"]/TITLE
But we misunderstood things and using the sample data given found that the
XML really looks like this:
<BOOKS>
<BOOK>
<TITLE>Gullivers Travels</TITLE>
<ISBN>0-671-00174-4</ISBN>
</BOOK>
<BOOK>
<TITLE>Hansel and Gretel</TITLE>
<ISBN>1-84466-725-1</ISBN>
</BOOK>
<BOOKS>
Our problem is that we don't know the general type of XPATH now to use. And
because we are panicking without the course notes are just guessing at all
the possible obvious XPATH expressions and trying to find an example in
Google
Can someone please take pity on us and help wqith the one XPATH line
necessary.
Thank you
Pete
to format some data in HTML for Internet Explorer. The work uses XSLT and
CSS and XML. The objective is to write a search form, the user enters
details in a browser window, presses the "search" button, and books that
match the search criteria are displayed in a table formatted with pretty
colours.
We have a problem.
We thought the XML searched by the application looked like this:
<BOOKS>
<BOOK isbn="0-671-00174-4">
<TITLE>Gullivers Travels</TITLE>
</BOOK>
<BOOK isbn="1-84466-725-1">
<TITLE>Hansel and Gretel</TITLE>
</BOOK>
<BOOKS>
To search, to display the book title in a table, we were using for example
the following XPATH
/BOOKS/BOOK[@isbn="0-671-00174-4"]/TITLE
But we misunderstood things and using the sample data given found that the
XML really looks like this:
<BOOKS>
<BOOK>
<TITLE>Gullivers Travels</TITLE>
<ISBN>0-671-00174-4</ISBN>
</BOOK>
<BOOK>
<TITLE>Hansel and Gretel</TITLE>
<ISBN>1-84466-725-1</ISBN>
</BOOK>
<BOOKS>
Our problem is that we don't know the general type of XPATH now to use. And
because we are panicking without the course notes are just guessing at all
the possible obvious XPATH expressions and trying to find an example in
Can someone please take pity on us and help wqith the one XPATH line
necessary.
Thank you
Pete