|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Are long XPath statements inherently bad?
As far as logic is concerned if you can simplify your XML result set
with XPath instead of sending the entire tree through a series of xsl
conditional logic elements your probably better off. Of course without
seeing your XML and what you ultimately want as output its tough to say
one way or the other if there is a simpler way to accomplish this.
I am kind of wondering what this is: [( @yearspecific, . ) != 1 theres no preceding function name and its not an equation so I'm not quite sure what you are trying to create to then compare its value and I doubt your processor does either. Depending on the processor you are using you may be able to take advantage of the EXSLT date extensions. See exslt.org. This is one of Jeni Tennisons projects so you can feel confident that its likely to solve a good portion of the issues that either can't be solved with XSLT 1.0 or are so verbose (read ugly and unnatural) and processor intensive they needed another way. Saxon (and inherently Saxon.NET) support EXSLT but if your going to move that direction you might as well begin developing in XSLT 2.0 which has date processing built in. There are a few other processors that support EXSLT as well... the site has a listing of the functions and the processors that support each one. With all of this said, you may very well be trying to create something that is much better served using a server side control with ASP.NET. If you are thinking of going this route anyway youre going to find yourself being much more productive using the calendar control that comes as part of the standard ASP.NET component library. With the data binding capabilities etc... its a much more robust solution and I would highly recommend it if you decide to go the .NET route. Coincidentally you can also develop and run ASP.NET (including the calendar control I believe) using Mono which gives such a solution a cross-platform appeal. See http://www.mono-project.com for more details. Best of luck! <M:D/> John wrote: Sorry again, I am relatively new to XSL. I am trying to put together of events as a table by outputting a list of items in each cell by executing queries such as the following (this is actually simplified):
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








