cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Arda Balci" <aba...@globalforte.com>
Subject RE: two xml source files
Date Tue, 23 Apr 2002 11:56:38 GMT
Thank you both, I am giving more detail:

I would like to see your approach, I tried to use the param but I was
unsuccessful. I used the cocooncenter.org navigation menu example as a
pointer.

I can pass the parameter contaning the menufile name to the xsl file
(the parameter is defined on the sitemap)

the sitemap contains:
   <map:match pattern="mutekv112/*.html">
    <map:generate src="mutekv112/{1}.xml"/>
    <map:transform src="mutekv112/stylesheets/page2html01.xsl">
    	<map:parameter name="menu-file" value="mutekv112/menu.xml"/>
    </map:transform>
    <map:serialize type="html"/>
   </map:match>

but I can't call the content from the menu.xml file using document()
function.

I just want to process the menu.xml content to the *.html file.

The menu.xml simply contains:

<content>
	<main label="Corporate" href="profile.html"></main>
	<main label="Industry" href="industry.html"></main>
	<main label="Trading Philosophy" href="tradingp.html"></main>
	<main label="Trading Strategy" href="strategy.html"></main>
	<main label="Markets" href="markets.html"></main>
	<main label="Advisory Services" href="topics.html"></main>
</content>


what should be the correct syntax on the page2html01.xsl to display the
menu.xml content next to the *.xml content?

Or should I use something else?

I just received the third approach from fabien, I will take a look at
that also,

Arda Balci
It Consultant

-----Original Message-----
From: Venkatachalapathi [mailto:gvpathi_dev@yahoo.co.in] 
Sent: Tuesday, April 23, 2002 2:45 PM
To: cocoon-users@xml.apache.org; lmorandini@ieee.org
Subject: Re: two xml source files

You may also use this type if xsl processor can be used on this place

 <xsl:param name="MenuFile"/> at the top.  and build the xsl params at
run
time using any xsl processor.  Inside xsl you can refer with
MenuFile/... so
on..

Actually I don't know the exact situation where you are using.  But in
one
of our project we solved this using param pattern.

If this is the way you want I will elaborate the things...
Sorry for incontinence cause if this approach diverts..

GVPathi



----- Original Message -----
From: "Luca Morandini" <luca.morandini1@tin.it>
To: <cocoon-users@xml.apache.org>
Sent: Tuesday, April 23, 2002 4:54 PM
Subject: RE: two xml source files


> Arda,
>
> you may use a number of solution:
>
> 1) Aggregate (using <map:aggregate>) those XML fiels and feed them to
the
> XSLT transformer
> 2) Use document() function inside the stylesheet
>
> Best regards,
>
> P.S.
> Plain rext posting next time, please.
>
> ---------------------------------------------
>                Luca Morandini
>                GIS Consultant
>               lmorandini@ieee.org
> http://utenti.tripod.it/lmorandini/index.html
> ---------------------------------------------
>
> -----Original Message-----
> From: Arda Balci [mailto:abalci@globalforte.com]
> Sent: Tuesday, April 23, 2002 1:15 PM
> To: cocoon-users@xml.apache.org
> Subject: two xml source files
>
>
> I have two xml files. One is for the menu content, the other is for
the
body
> content. I want to read from these two different files with one xsl
file,
> and serialize html.
>
> The menu file is to be used with each page.
>
> I couldn't solve the problem. Do I need a special pipeline in the
sitemap?
>
>
> Arda Balci
> It Consultant
>
>
>
> ---------------------------------------------------------------------
> Please check that your question has not already been answered in the
> FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>
>
> To unsubscribe, e-mail: <cocoon-users-unsubscribe@xml.apache.org>
> For additional commands, e-mail: <cocoon-users-help@xml.apache.org>


_________________________________________________________
Do You Yahoo!?
Get your free @yahoo.com address at http://mail.yahoo.com


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


---------------------------------------------------------------------
Please check that your question has not already been answered in the
FAQ before posting. <http://xml.apache.org/cocoon/faqs.html>

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


Mime
View raw message