Subject: Re: Client-side XSLT
From: Michael Kay <mike@xxxxxxxxxxxx>
Date: Sun, 25 Sep 2011 23:38:56 +0100
|
On 25/09/2011 01:04, Mark wrote:
I have a stylesheet that generates XHMTL like:
<a href="../aip/635.htm">
<img src="../cr/small/635.jpg" alt="stamp image"/>
</a>
Right now, clicking on the 635.jpg images opens the 635.htm page.
The difficulty is that in the final project, the aip/n.htm files would
number more than 3000 if each were constructed individually. Those
pages are quite simple and contain only an image and a few lines of
text. What I am looking for is a way to launch an XSLT style sheet
that would build the page within the browser on demand.
My idea is that clicking on the small/635.jpg image on my XHTML page
would launch a stylesheet to build the 636.htm page. I need some hints
on how to get started, where to look, or to know that this is not a
good idea.
You need to write some Javascript that responds to the onclick event and
launches an XSLT transformation. You can't do this using the
<?xml-stylesheet?> approach.
Michael Kay
Saxonica
| Current Thread |
Hank Ratzesberger - 25 Sep 2011 21:04:41 -0000
- Mark - 25 Sep 2011 21:21:55 -0000
Michael Kay - 25 Sep 2011 22:39:05 -0000 <=
- Tom T - 26 Sep 2011 08:55:17 -0000
|
|