This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
RE: re: Change an XSLT top-level parameter
- To: <xsl-list at lists dot mulberrytech dot com>
- Subject: RE: [xsl] re: Change an XSLT top-level parameter
- From: "Chris Bayes" <chris at bayes dot co dot uk>
- Date: Mon, 12 Nov 2001 15:26:10 -0000
- Reply-to: xsl-list at lists dot mulberrytech dot com
Robert,
Thanks for hacking my code around ;-)
Why are you so set against javascript? If you use javascript you can
modify the changestylesheet powertoy or use a javascript extension to
get the querystring from the request as explained in the A to B
tutorial.
Ciao Chris
XML/XSL Portal
http://www.bayes.co.uk/xml
> -----Original Message-----
> From: owner-xsl-list@lists.mulberrytech.com
> [mailto:owner-xsl-list@lists.mulberrytech.com] On Behalf Of
> Robert Stuart
> Sent: 12 November 2001 12:26
> To: 'xsl-list@lists.mulberrytech.com'
> Subject: [xsl] re: Change an XSLT top-level parameter
>
>
> Thanks to David Carlisle, and Jenni Tennsion
>
> The combination of your suggestions plus a hack of Chris
> Bayes 'XML/XSL Portal' gave me a workable, and (moderately)
> flexible solution:
>
> I now have one DATA sheet (.xml), one style sheet (.xslt),
> plus any number of caller xml sheets (.xml).
>
> The caller (my term but it's ugly); caller xml's are named
> for their role (caller_detail.xml, caller_summary.xml &c),
> and 'know' about the other sheets in the project.
>
> ####################
>
> <?xml-stylesheet type="text/xsl" href="stylesheet.xslt"?>
> <!DOCTYPE top_level_element [
> <!ENTITY main SYSTEM "data.xml">
> ]>
> <top_level_element title="XML Main" id="page">
> <!-- use these nodes to populate the style sheet variables -->
> <!-- in my case, mode controls display -->
> <mode>Detail</mode>
>
> <!-- this simply gives me a 'project' name for a set of
> calling files -->
> <caller>caller_</caller>
>
> <pagemain>
> &main;
> </pagemain>
> </top_level_element>
>
> ##########################
>
>
> Note, this gets around the problem of a large data sheet
> having hard coded information - though it breaks my one XML
> sheet only rule.
>
>
>
> Date: Fri, 9 Nov 2001 09:07:43 -0000
> From: Robert Stuart <Robert.Stuart@NFER-NELSON.co.uk>
> Subject: Re: [xsl] Change an XSLT top-level parameter
>
> I was hoping for something like ...
>
> [snip]
>
> ================
>
> Date: Thu, 8 Nov 2001 17:01:18 GMT
> From: <davidc@nag.co.uk>
> Subject: Re: [xsl] Change an XSLT top-level parameter
>
> > Is there any way I change an XSLT top-level parameter from
> the client
> > side without using java script?
>
> [snip]
>
> XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
>
>
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list