Subject: RE: [xsl] dynamic import of stylesheets? From: "Chris Bayes" <chris@xxxxxxxxxxx> Date: Wed, 29 Aug 2001 12:56:33 +0100 |
Phillip, The short answer is no. If I needed to do this kind of thing I'd use a 2 phase aproach where the first stylesheet generates the second stylesheet that actually does the transformation. Ciao Chris XML/XSL Portal http://www.bayes.co.uk/xml > -----Original Message----- > From: owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx > [mailto:owner-xsl-list@xxxxxxxxxxxxxxxxxxxxxx] On Behalf Of > Phillip Rhodes > Sent: 29 August 2001 12:18 > To: XSL-List@xxxxxxxxxxxxxxxxxxxxxx > Subject: [xsl] dynamic import of stylesheets? > > > Hi, > > I am using xsl, xml in a perhaps novel way, and can't think > of a solution > to my problem. To explain: > > I am generating reports that are very "per-report" > customized. They are > built up sentence by sentence based upon values in the source xml > document. Each sentence is a named template. For example, > someone with a > high risk score in cancer will see a certain set of > sentences. For example: <xsl:if > test"/cycle/cancer[@riskscore > 90]"> > <xsl:call-template name="cancer-90"/> > </xsl:if> > and so on.... > > There are multiple versions of the named template > "cancer-90", which is > called above. The different versions represent longer, or > detailed, or > shorter ways of saying the same thing. I put each version of > templates in > it's own stylesheet, and do an import in the top stylesheet( > the one that > calls each of the section stylesheets) of the version of > templates that I > want to use. > > I build up a 20 page report this way. Each report has > different sections, > cancer being one of them. > My problem is that I need to change the version of templates > in use (change > the import) for two of the sections in the report (and it will be > different for each report). To explain, in the areas that > people have > their biggest problems (e.g. smoking, alcohol, weight), I > want to use the > most verbose set of templates. > > My problem is that I need to set a different version of > templates for each > section (each section is already in it's own stylesheet) in a > dynamic, > runtime kind of way. > > If you see a way to do this, or see a problem in general with > my design, > please get back to me. > > > Thanks, and sorry for the long post... > Phillip > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] dynamic import of stylesheets, Phillip Rhodes | Thread | Re: [xsl] dynamic import of stylesh, Michael Beddow |
[xsl] Re: Recursion, Joerg Pietschmann | Date | RE: [xsl] Namespace Identifiers - U, Chris Bayes |
Month |