Re: [xsl] Transforming XML 'on-the-fly' / Dynamic XSLT???

Subject: Re: [xsl] Transforming XML 'on-the-fly' / Dynamic XSLT???
From: Colin Paul Adams <colin@xxxxxxxxxxxxxxxxxx>
Date: 08 Nov 2004 18:28:01 +0000
>>>>> "Nick" == Nick Roberts <nick_roberts5@xxxxxxxxxxx> writes:


    Nick> What I want to achieve is some kind of tool, which will
    Nick> input an XML document, then transform this document based on
    Nick> arguments declared within the application. For example, once
    Nick> the XML document has been inputted into the system, you can
    Nick> view the current nodes and then say how you want to
    Nick> transform these.

    Nick> As far as i'm aware, this would require some kind of method
    Nick> of 'dynamically' creating an XSLT page, without any kind of
    Nick> pre-definition of how the XML documents' required to change.

It depends on how much flexibility you need. If there are only a few
options, then perhaps a global parameter (or with XSLT 2.0, an initial
mode and/or initial template, or maybe use-when)) might be sufficient.

Of course, you could always create an XSLT stylesheet on the fly, if
you really need to.
-- 
Colin Paul Adams
Preston Lancashire

Current Thread