[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: "re-calling" a template from <a> anchor
> I tried it but I get an Http error 500. So I'm trying to > display a fixed number(e.g. 5) of elements and have a link > wich when clicked displays the next 5 elements let's say. The > only way I figured to do it was to call the same template but > I can't make it work. Anyone have any solution? 10x You haven't understood the processing model. You run an XSLT transformation, it produces an HTML document, the browser renders the document, the user clicks on a link. By that time the XSLT processor has long ago finished its job and gone back to bed. It's not going to suddenly execute the next instruction after the one that generated the link that the user clicked on. You need to arrange for the user action to trigger a new transformation that generates a new HTML document that refreshes the display in the browser. How this works in detail depends on your application environment - I don't know much about Cocoon. Michael Kay http://www.saxonica.com/
|
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
|