B
Benjamin Hillsley
Hi,
I have a xml file that catalogs my cd and dvd collection, and I am currently
writing a web page to access this catalog.
I would like to include a selection box that lists the CD's by artist, and
then have the XSLT select only what artist is chosen in the selection box.
So far I have been able to create the selection box, and populate it with
the artist's names. I have also created the <XSL:IF> statement that will
choose the artists records. The problem I have is the javascript I have
written to grab the selection box's current value cannot write this to an
XSLT variable to be referenced by the IF statement.
(1) Is it possible to have XSL directly reference the selection box, or
another way to have this work?
(2) Is there a way to strip multiple records of the same artist from the
selection box, e.g. If I have 2 cd's by Metallica then Metallica appears
twice in the selection box?
Thanks
Ben
(e-mail address removed)
I have a xml file that catalogs my cd and dvd collection, and I am currently
writing a web page to access this catalog.
I would like to include a selection box that lists the CD's by artist, and
then have the XSLT select only what artist is chosen in the selection box.
So far I have been able to create the selection box, and populate it with
the artist's names. I have also created the <XSL:IF> statement that will
choose the artists records. The problem I have is the javascript I have
written to grab the selection box's current value cannot write this to an
XSLT variable to be referenced by the IF statement.
(1) Is it possible to have XSL directly reference the selection box, or
another way to have this work?
(2) Is there a way to strip multiple records of the same artist from the
selection box, e.g. If I have 2 cd's by Metallica then Metallica appears
twice in the selection box?
Thanks
Ben
(e-mail address removed)