biggie_mac
05-07-2007, 02:59 AM
I have 2 problems with XML/XSL:
1. How can I display a fix number(let's say 10) of elements of an xml files having some butons(1,2 ..etc) under which display the next 10 elements? So if i'd have
<books>
<book>
<name>Book1</name>
<title>Book title 1</title>
</book>
..........
<book>
<name>Book30</name>
<title>Book title 30</title>
</book>
I'd like to display them in html (probably using xsl) in number of 10, and under the list I'd have butons -1- -2- -3- and when you click on them, it would display the next ten.
2. Very basic search engine. Let's say I have the xml showed above. And I have an html form with an text input where u enter the name of the book and if it exists in the xml it displays the title. So in xsl it would somehow be <xsl:value-of select book/title[name='parameter from the html form']>...but how do I link the html to the XML/XSL? what do i put in the action atribute of the html form? Anyone can help? thanx in advance
1. How can I display a fix number(let's say 10) of elements of an xml files having some butons(1,2 ..etc) under which display the next 10 elements? So if i'd have
<books>
<book>
<name>Book1</name>
<title>Book title 1</title>
</book>
..........
<book>
<name>Book30</name>
<title>Book title 30</title>
</book>
I'd like to display them in html (probably using xsl) in number of 10, and under the list I'd have butons -1- -2- -3- and when you click on them, it would display the next ten.
2. Very basic search engine. Let's say I have the xml showed above. And I have an html form with an text input where u enter the name of the book and if it exists in the xml it displays the title. So in xsl it would somehow be <xsl:value-of select book/title[name='parameter from the html form']>...but how do I link the html to the XML/XSL? what do i put in the action atribute of the html form? Anyone can help? thanx in advance