cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Giacomo Pati <Giacomo.P...@pwr.ch>
Subject Re: Multiple XSL files used simultaneously
Date Mon, 05 Jun 2000 08:23:51 GMT
"Dubois, Julien" wrote:
> 
> Hello everybody,
> 
> I'm trying to have an XML file being processed through two consecutive XSL
> files. Does anybody knows how to do that? Is it even possible?
> 
> To show you more precisely what I mean, I would like to:
> 1. Take an XML file.
> 2. Transform this XML file into another XML file (to transform it into the
> "standard" XML we use for our project).
> 3. Transform this last XML file into HTML (with our "standard" XSL used for
> the rest of the project).
> 
> As you can imagine, step 3 is the same for the whole project (everybody in
> the project should use our "standard" XML and XSL). But I can get some XML
> files different from our "standard", which in that case should be first
> transformed into our "standard" XML (this is step 2).
> 
> So, can do those two transformations consecutively, using  only Cocoon? What
> headers should I include in the first XML file?

Make sure your stylesheet in step 2 generates the following processing
instructions:
  <?xml-stylesheet href="you-standard.xsl" type="text/xsl"?>
  <?cocoon-process type="xslt"?>

Giacomo

-- 
PWR GmbH, Organisation & Entwicklung      Tel:   +41 (0)1 856 2202
Giacomo Pati, CTO/CEO                     Fax:   +41 (0)1 856 2201
Hintereichenstrasse 7                     Mailto:Giacomo.Pati@pwr.ch
CH-8166 Niederweningen                    Web:   http://www.pwr.ch

Mime
View raw message