Subject: Re: [xsl] XSL QUERY From: Jeff Kenton <jkenton@xxxxxxxxxxxxx> Date: Fri, 7 Dec 2001 11:17:59 -0500 |
.. From: "Tarun Saheja" <tarun.saheja@xxxxxxxxx> .. Date: Fri, 7 Dec 2001 21:05:40 +0530 .. .. I have an XML Structure that looks something like this: This is your problem. Your <BookName ... > elements don't have an Author attribute, which would make the solution trivial. With what you have, you will need to guarantee that your books are all grouped by author and do some ugly stuff to check when a new Author is seen. If you can change your <BookName> elements to contain an author, I would recommend that. Especially since the name attribute seems to have the author embedded in it right now. --jeff .. .. <Books> .. <Author name="Author1" Specialist="Fiction" /> .. <BookName name="Author1Book1" Type="Fiction" /> .. <BookName name="Author1Book2" Type="General"/> .. <BookName name="Author1Book3" Type="Biography"/> .. <BookName name="Author1Book4" Type="Fiction"/> .. <Author name="Author2" Specialist="General" /> .. <BookName name="Author2Book1" Type="Fiction"/> .. <BookName name="Author2Book2" Type="Fiction"/> .. <BookName name="Author2Book3" Type="Biography"/> .. <BookName name="Author2Book4" Type="General"/> .. </Books> .. .. Now if I have to display the XSL by categorizing from the 'Type' attribute .. of <BookName>, for example I want to display all the books that belong to .. the 'Fiction' Category of Author1, inspite of Author1 having other types of .. books, then how will I achieve it? .. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] XSL QUERY, Oleg Tkachenko | Thread | Re: [xsl] XSL QUERY, Eric Vitiello |
[xsl] XSL QUERY, Tarun Saheja | Date | [xsl] Browser visibility, Alvaro Mujica |
Month |