cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexander Zirl" <alex.z...@web.de>
Subject AW: xml and xsl
Date Sat, 08 Jan 2005 12:57:32 GMT
Yes, everything has already been said. One more point:

It's important to understand the principle of how the pipelining and the
XSL/XML relations work. In a 'normal' environment, i.e. when not using
cocoon, the XML files include references to the XSL stylesheets they are
using. The files are physically not bound. Thus, it works similar in the
pipelining of cocoon (at least conceptually). First, you choose your source
XML document, then you apply your XSL stylesheet. 

You could end up with a lot more complex pipeline than that, including more
branches using <map:when test="...."> in order to avoid writing lots of
pipelines for similar jobs.

Hope this was a bit of help to you.

Best,
Alexander

-----Urspr√ľngliche Nachricht-----
Betreff: Re: xml and xsl

gounis@osmosis.gr wrote:

>first-data.xml
>second-data.xml
>third-data.xml
>
>single.xsl
>
><map:match pattern="*-data.xml>
>  <map:generate src="{1}-data"/>
>  <map:transform src="single.xsl"/>
>  <map:serialize type="html"/>
></map:match>
>  
>
or:

<map:match pattern="*-data.xml>
  <map:aggregate element="root">
    <map:part src=first-data.xml"/>
    <map:part src=second-data.xml"/>
    <map:part src=third-data.xml"/>
  </map:aggregate>
  <map:transform src="single.xsl"/>
  <map:serialize type="html"/>
</map:match>


Upayavira

>
>--stavros
>
>
>On Sat, 8 Jan 2005, Mygrp wrote:
>
>  
>
>>I have four xml files with the same format. They contain different
>>data but same tags.
>>
>>I want to write an XSL that will read the data from the XML files and
>>produce an XHTML page.
>>
>>Can a single XSL file be used to read from the different XML files
>>which have the same tags?  In this case how should the pipeline be ?
>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>>For additional commands, e-mail: users-help@cocoon.apache.org
>>
>>
>>    
>>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
>For additional commands, e-mail: users-help@cocoon.apache.org
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message