This is Interesting: Free Magazines for Graphics designers and webmasters  


Home > Archive > Microsoft XML > February 2005 > XSL: how to directly go to the n(th) node?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author XSL: how to directly go to the n(th) node?
Leo

2005-02-14, 11:17 pm

I have a XML like this:

<Catalog>
<CD>
<author>firstAuthor</author>
<titile>firstTitle</Title>
<date>xx-xx-xxxx</date>
</CD>
<CD>
<author>secondAuthor</author>
<titile>secondTitle</Title>
<date>xx-xx-xxxx</date>
</CD>
<CD>
<author>thirdAuthor</author>
<titile>thirdTitle</Title>
<date>xx-xx-xxxx</date>
</CD>
</Catalog>

In my XSL file, I created a combobox to contain the "author" list. When
user changes the selection, I would like to display only the content of
the current "CD" node. (eg. When the selection is "secondAuthor", only
display "secondTitle" and "xx-xx-xxxx"). So I am wondering whether this
is a way to directly jump to (select) the n-th node or do you have
other suggestion? Thanks very much.

Leo

Sponsored Links


Copyright 2003 - 2008 forum4designers.com  Software forum  Computer Hardware reviews