Designing a XSL for generating A-Z... 2003-05-12 - By peter peter
Hi Andrew, Definitly I would like to go with better approach. Can you will give more details of your solution. Like when you say "checking against directory list" , Only by calling java program I could find out directory list? ? Thanks,Peter Andrew Welch <AWelch@(protected)> wrote: >Thanks for the suggestion, What if I create an xml with A-Z Nodes, then XSL will call the java program to check if the directory exists, if yes then create link otherwise don't create the link ..
Yes you could do that, but its the wrong way around imho. I would use an XML Filter on the way into the transform, checking it against the directory list and adding attributes to the elements that pass the test. Then you can check for the existence of the attribute in the stylesheet to decide whether the element has a matching directory or not. Its the most effecient way, and isn't too hard (calling custom external java functions can be confusing enough :)
cheers andrew
--- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.470 / Virus Database: 268 - Release Date: 08/04/2003
--------------------------------- Do you Yahoo!? The New Yahoo! Search - Faster. Easier. Bingo. <DIV>Hi Andrew,</DIV> <DIV> Definitly I would like to go with better approach .</DIV> <DIV> Can you will give more details of your solution. Like when you say "checking against directory list" , Only by calling java program I could find out directory list??</DIV> <DIV> </DIV> <DIV>Thanks,</DIV> <DIV>Peter</DIV> <DIV><BR><B><I>Andrew Welch <AWelch@(protected)></I></B> wrote:</DIV> <BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid"><BR>>Thanks for the suggestion, What if I create an xml with A-Z Nodes, then XSL will call the java program to check if the directory exists, if yes then create link otherwise don't create the link .. <BR><BR>Yes you could do that, but its the wrong way around imho. I would use an XML Filter on the way into the transform, checking it against the directory list and adding attributes to the elements that pass the test. Then you can check for the existence of the attribute in the stylesheet to decide whether the element has a matching directory or not. Its the most effecient way, and isn't too hard (calling custom external java functions can be confusing enough :)<BR><BR>cheers <BR>andrew<BR><BR><BR>---<BR>Outgoing mail is certified Virus Free.<BR>Checked by AVG anti-virus system (http://www.grisoft.com).<BR>Version: 6.0.470 / Virus Database: 268 - Release Date: 08/04/2003<BR></BLOCKQUOTE><p><hr SIZE=1> Do you Yahoo!?<br> <a href="http://us.rd.yahoo.com/search/mailsig/*http://search.yahoo.com">The New Yahoo! Search</a> - Faster. Easier. Bingo.
|
|