O
Omega375
Hello.
I'll first start off by showing the structure of my xml-file.
<root>
<node path="X">
More nodes containing data
</node>
</root>
Let's see this like books;
<books>
<book author="X">
More nodes containing data
</book>
</books>
What I now want to do (with XSLT) is to display all the books by the
author, eg;
JK Rowling
* Harry Potter 1
* Harry Potter 2
Tolkien
* LOTHR 1
* LOTHR 2
....
This can easly be done by using xpath "books/book[@author='JK
Rowling']".
This is where my problem is;
I don't knwo which authors that do exist in the xml-file. So somehow I
have to find all the names of the authors and then pass the names, one
by one, to the xpath.
I don't think adding
<authors>
<author>Name</author>
...
</authors>
to the xml-file is an option.
I sure hope someone knows how to solve this problem.
Thank you in advance!
I'll first start off by showing the structure of my xml-file.
<root>
<node path="X">
More nodes containing data
</node>
</root>
Let's see this like books;
<books>
<book author="X">
More nodes containing data
</book>
</books>
What I now want to do (with XSLT) is to display all the books by the
author, eg;
JK Rowling
* Harry Potter 1
* Harry Potter 2
Tolkien
* LOTHR 1
* LOTHR 2
....
This can easly be done by using xpath "books/book[@author='JK
Rowling']".
This is where my problem is;
I don't knwo which authors that do exist in the xml-file. So somehow I
have to find all the names of the authors and then pass the names, one
by one, to the xpath.
I don't think adding
<authors>
<author>Name</author>
...
</authors>
to the xml-file is an option.
I sure hope someone knows how to solve this problem.
Thank you in advance!