Re: XSL-question: sort with parameter

2002-03-26 Thread Bartomeu Adrover

It's not a very good solution if you have a lot of values for sort,
because you need to put one xsl:if tag for any possible value.

?xml version=1.0 encoding=ISO-8859-1?
xsl:stylesheet version=1.0
xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:parameter name = sort/

 xsl:template match=/HELLO
  xsl:if test = $sort='@K'
   xsl:apply-templates select=GOODMORNING 
 xsl:sort select=@K/
  /xsl:apply-templates
  /xsl:if
  xsl:if test = $sort='@H'
   xsl:apply-templates select=GOODMORNING 
 xsl:sort select=@H/
  /xsl:apply-templates
  /xsl:if
 /xsl:template

 xsl:template match=GOODMORNING
  xsl:value-of select=./
 /xsl:template
/xsl:stylesheet


Axel Honfi wrote:

 Hi!

 I passed a parameter to a stylesheet and I can get the value with
 xsl:value-of select=$order-by/.

 But I need to sort data by the value of the parameter like

 xsl:sort select=$order-by order=ascending/.

 But with this nothing happens and all other forms I tried also failed.

 Does anyone know how to work this?

 Thanks a lot

 Axel

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: External graphic, FOP and URIResolver

2002-03-21 Thread Bartomeu Adrover

I have this problem and this is my solution (it isn't very elegat, but can be
util) :

I put the image with a relative link to the pdf file.
The path of my site map is http://machine/context/sci/ (by default context is
coocon). If you request one file of the sci/ directory you need use the first
pipeline if you request a resources on a child of sci you must use the second
pipeline.
In the xslt pdf.xst that transforme my xml source in an pdf I use the parameter
filePath as a prefix for the image url. With this prefix I have the complete
path of the image.

   map:match pattern=*.pdf
map:generate src={1}.xml/
map:match type=host pattern=*
 map:act type=request
  map:transform src=xsl/pdf.xsl
   map:parameter name=filePath value=http://{../1}{context}/sci/
  /map:transform
 /map:act
/map:match
map:serialize type=fo2pdf/
   /map:match

   map:match pattern=**/*.pdf
map:generate src={1}/{2}.xml/
map:match type=host pattern=*
 map:act type=request
  map:transform src=xsl/pdf.xsl
   map:parameter name=filePath
value=http://{../1}{context}/sci/{../../1}/
  /map:transform
 /map:act
/map:match
map:serialize type=fo2pdf/
   /map:match

I don't like this solution. Have any one a bette?.

Olivier Rossel wrote:

 Tell me if I am wrong:
 FOP only accepts standard URLs for external-graphic src  attribute.
 file://
 http://
 are ok.

 No relative path, and no cocoon pseudo-protocol.

 Can anyone confirm?

 Is it possible that FOP uses the URIResolver of Cocoon instead, in order to
 understand pseudo-protocol (especially cocoon:// and resource://) ?

 Is there a trick in order to use relative paths in FOP? (I read the
 archives and everyone
 seems to use full URLs :-(

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem in map:handle-errors

2002-03-20 Thread Bartomeu Adrover


I stop the tomcat and delete the work directory (somtimes don't delete
the cache only stoping the server) and I start the tomcat.
If I remove the line map:part src="cocoon:/noticies.xsrc"/> the
page don't give me an error, only don't display the information.
The error message reported is: can't access to the url "http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCIp_ub
i_codalf=SCIIncidencies".

Nicola Ken Barozzi wrote:
From: "Bartomeu Adrover" [EMAIL PROTECTED]>
> Hello, I use cocoon 2.01 with apache tomcat 4.01 in windows nt. I
> construct an page with varius xml source with ma:part> tag:
> map:match pattern="index.xml">
> map:aggregate element="root">
> map:part src="cocoon:/noticies.xsrc"/>
> map:part src="personalsci.xml"/>
> map:part src="index.xml"/>
> /map:aggregate>
> map:act type="request">
> map:transform src="xsl/principal.xsl">
> map:parameter name="use-request-parameters"
value="true"/>
> map:parameter name="homePath"
value="{context}/sci"/>
> /map:transform>
> /map:act>
> map:serialize type="html-iso"/>
> /map:match>
> The problem is the part map:part src="cocoon:/noticies.xsrc"/>.
This
> part get the informatio from other server and sometimes this service
is
> unaviable. If I consult the url direcly "http://www.uib.es."
when is
> unavible all the pipeline return an error.
> I thing a solution: use an pipeline that request this url and if
an
> error happens then process the xml error code and return an usefull
xml
> for my first pipeline:
> map:pipeline>
> map:match pattern="noticies.xsrc">
> map:generate
>
src="http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCIamp;p_ub
i_codalf=SCIIncidencies"/>
>
> map:serialize type="xml-iso"/>
> /map:match>
>
> map:handle-errors>
> map:transform src="xsl/noticies_error.xsl"/>
> map:serialize type="xml-iso" status-code="200"/>
> /map:handle-errors>
> /map:pipeline>
> When I request the second pipeline I recive the correct xml, but
in the
> first pipeline continue return an error (url unaviable).
> Have one any idea?.
Sorry for the very simple question, but are you sure that all the other
files in the first pipeline are really available?
Without map:part src="cocoon:/noticies.xsrc"/>
in the first pipeline do
you still get an error?
Are you sure you're not getting cached stuff?
--
Nicola Ken Barozzi
[EMAIL PROTECTED]

- verba volant, scripta manent -
 (discussions get forgotten, just code remains)
-
-
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: [EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]>


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Problem in map:handle-errors

2002-03-19 Thread Bartomeu Adrover

Hello, I use cocoon 2.01 with apache tomcat 4.01 in windows nt. I
construct an page with varius xml source with ma:part tag:
map:match pattern=index.xml
map:aggregate element=root
 map:part src=cocoon:/noticies.xsrc/
 map:part src=personalsci.xml/
 map:part src=index.xml/
/map:aggregate
map:act type=request
 map:transform src=xsl/principal.xsl
  map:parameter name=use-request-parameters value=true/
  map:parameter name=homePath value={context}/sci/
 /map:transform
/map:act
map:serialize type=html-iso/
   /map:match
The problem is the  part map:part src=cocoon:/noticies.xsrc/. This
part get the informatio from other server and sometimes this service is
unaviable. If I consult the url direcly http://www.uib.es.; when is
unavible all the pipeline return an error.
I thing a solution: use an pipeline that request this url and if an
error happens then process the xml error code and return an usefull xml
for my first pipeline:
map:pipeline
   map:match pattern=noticies.xsrc
   map:generate
src=http://swww.uib.es:9080/Noticies/fllistat.not?p_ubi_codalf=SCIamp;p_ubi_codalf=SCIIncidencies/

 map:serialize type=xml-iso/
   /map:match

   map:handle-errors
map:transform src=xsl/noticies_error.xsl/
map:serialize type=xml-iso status-code=200/
   /map:handle-errors
  /map:pipeline
When I request the second pipeline I recive the correct xml, but in the
first pipeline continue return an error (url unaviable).
Have one any idea?.
Tanks.


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Optional parameters

2002-03-05 Thread Bartomeu Adrover

If you use the transformer xsl with pass the parameter to the xslt, is not
necessary to declare the parameters and use the match. Prove this:

   map:match pattern=D*/*.xml
map:generate src=D{1}/{2}.xml/
 map:transform src=doc.xsl
map:parameter name=use-request-parameters value=true/
 map:transform/
 map:serialize type=html/
   /map:match
The tag map:parameter name=use-request-parameters value=true/ send to xslt
all the parameters from the url or the post request.
See the cocoon documentation for other examples.

Olivier Boulanger wrote:

 Hi all,

 I've got something like :
map:match pattern=D*/*.xml
 map:generate src=D{1}/{2}.xml/
 map:match type=request pattern=lang
  map:transform src=doc.xsl
   map:parameter name=lang value={1}/
  /map:transform
  map:serialize type=html/
 /map:match
/map:match
 In my sitemap.

 But I'm not sure that lang - optional parameter of doc.xsl - has been sent
 by the URL, and :
 URL like xxx.xml?lang= = ok
 URL like xxx.xml = ressource not found error

 = How can I manage optional request parameters in the sitemap ?

 Many thanks,

 Olivier

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Convert RTF to XSL:FO

2002-03-04 Thread Bartomeu Adrover

See this URL:
http://www.novosoft-us.com/ns2b.nsf/w1/RTF2FO
http://www-106.ibm.com/developerworks/xml/library/x-tiprtf/

Matthew Langham wrote:

 Looking for some suggestions on how to convert RTF documents into XSL:FO for
 further processing into PDF. Yes I know there are several tools
 avialable - but I would rather hear some firsthand experienceIn
 particular we are looking for tools that work well when it comes to (quite
 complex) forms in RTF.

 Thanks

 Matthew

 --
 Open Source Group   sunShine - Lighting up e:Business
 =
 Matthew Langham, SN AG, Klingenderstrasse 5, D-33100 Paderborn
 Tel:+49-5251-1581-30  [EMAIL PROTECTED] - http://www.s-und-n.de
Weblogging at: http://www.need-a-cake.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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: xsl:output problem

2002-02-27 Thread Bartomeu Adrover

Hello, the xslt tranform xml to xml, but the HTML serializer transform the
result xml in html. If you tell to the sitemap that the serilizer is xml
then your result as xml.
For example:
map:match pattern=files/**.xml
map:generate src={1}.xml/
map:transform src=transformer.xsl/
map:serialize type=xml/
/map:match
I has a problem, because the serializer don't put the ISO-8859-1 encoding.
My solution was put the encoding in the serializer definition:
map:serializers default=html-iso
   map:serializer name=xml-iso mime-type=text/xml
logger=sitemap.serializer.xml.iso
src=org.apache.cocoon.serialization.XMLSerializer pool-max=32
pool-min=16 pool-grow=4
encodingiso-8859-1/encoding
   /map:serializer
   map:serializer name=html-iso mime-type=text/html
logger=sitemap.serializer.html
src=org.apache.cocoon.serialization.HTMLSerializer
encodingiso-8859-1/encoding
   /map:serializer
  /map:serializers

KOZLOV Roman wrote:

 Hello,

 Could somebody help me, please? Is it possible to use xsl:output in
 stylesheets processed by cocoon's xslt transformer? It seems that it has
 no effect.  Indeed, the problem is that I can't tell to xslt transformer
 that I need a pure XML as a result, but the xslt transformer always
 transforms img .../ to img ... and it leads to crash of a pipeline.
 My xsl begins like this:

   ?xml version=1.0 encoding=UTF-8 ?
   xsl:stylesheet version=1.0
 xmlns:xsl=http://www.w3.org/1999/XSL/Transform;
 xsl:output method=xml encoding=ISO-8859-1 indent=yes/
 . . .

 Thank you in advance.

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Newbie - how do I get URL request params in sitemap

2002-01-31 Thread Bartomeu Adrover

Prove to use the action RequestParamAction.
In the java doc of this class you can find how to use it.

Huw Jones wrote:

 How do I structure the cocoon2 sitemap to get request parmeters i.e

 url: http://hostname/cocoon/hello.pdf?param1=1param2=2

 So in the sitemap I want to

 map:match pattern=hello.pdf
 map:generate src=docs/samples/hello-page.xml /
 map:transform src=stylesheets/page/{param1} /
 map:serialize type={param2}/
  /map:match

 I'm sorry if this is a basic question I couldn't find anything to point
 me in the right direction in the archives.

 Many thanks

 Huw Jones

 _
 Tel: +44-208-5799024 (Office)
  +44-7973-539007 (Mobile)

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: How to configure sitemap.xmap

2002-01-24 Thread Bartomeu Adrover


If your xsp files generate FO you dont need the tag map:transform/>.
If your xsp files don't generate FO you need to especify the xslt (or the
transformer) for convert the xml generated by the xsp to FO.
"MOODAD (Shadi LB Soft)" wrote:
Hi
I'm trying to generate pdf reports using the cocoon servlet.
I have configured a pipeline like that to handle the xsp files
 map:pipeline>
 map:match pattern="**.xsp">
 map:generate type="file"/>
 map:transform/>
 map:serialize type="fo2pdf"/>
 /map:match>
 /map:pipeline>
So I got the following error with stack trace:
org.apache.cocoon.ProcessingException: Could not setup pipeline.: org.xml.sax.SAXException:
Invalid System ID
 at org.apache.cocoon.components.pipeline.AbstractEventPipeline.setupPipeline(AbstractEventPipeline.java:163)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.setup(CachingEventPipeline.java:239)
 at org.apache.cocoon.components.pipeline.CachingEventPipeline.generateKey(CachingEventPipeline.java:99)
 at org.apache.cocoon.components.pipeline.CachingStreamPipeline.process(CachingStreamPipeline.java:277)
 at org.apache.cocoon.www.conf.sitemap_xmap.wildcardMatchN4001F4(sitemap_xmap.java:3053)
 at org.apache.cocoon.www.conf.sitemap_xmap.process(sitemap_xmap.java:2400)
 at org.apache.cocoon.www.conf.sitemap_xmap.process(sitemap_xmap.java:2335)
 at org.apache.cocoon.sitemap.Handler.process(Handler.java:163)
 at org.apache.cocoon.sitemap.Manager.invoke(Manager.java:114)
 at org.apache.cocoon.Cocoon.process(Cocoon.java:515)
 at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:656)
Could any body help me on how to configure the pipeline to render the
xsp file into pdf formats
Thanks in advance.
--
Soft Solutions, Liban
Net Developper
Moodad Shadi
www.softsolutions.fr



begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: use-browser-capabilities-db

2002-01-15 Thread Bartomeu Adrover

There are any information about this in the source code of the xslt
transformer.

Alex Kachanov wrote:

 There is a parameter in sitemap use-browser-capabilities-db

 does any one know how to use this parameter?
 The documentation tells about some browser capability database
 but where is it in the filesystem?

 with best wishes
 Alexander Kachanov

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Subsitemap problem

2002-01-09 Thread Bartomeu Adrover

Hello
I have intalled a Cocoon 2 with Tomcat 4 in a Windows NT server. I
create a subsitemap outside of the cocoon directory. I include the
sitemap with this code in the main sitemap:
map:pipeline
   map:match pattern=sciprova/**
map:mount check-reload=yes src=d:/dades/webuib/serveis/sci/
uri-prefix=sciprova/
   /map:match
   map:handle-errors
map:transform src=stylesheets/system/error2html.xsl/
map:serialize status-code=500/
   /map:handle-errors
  /map:pipeline
 /map:pipelines

And when I try to acces an url in the sitemap the cocoon returns me file
not foud. The problem is correct if I put the subsitemap in the same
directory of the cocoo and call them with  this tag:
map:mount check-reload=yes src=sciprova/ uri-prefix=sciprova/
Someone have an idea for create an sitemap outside the cocoon main
directory?


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Question about XSLT parameters

2001-12-20 Thread Bartomeu Adrover

I'm working in web development and I'm traying to design our web site
with xml and Cocoon2.
With the cocoon 2 is possible pass to an XSLT one parameter usin this
tag
parameter name=myparamvalue=myvalue/ in a pipeline. This parameter
is the name of server, in my case
http://ensiola.uib.es:8080/. I need this information in the xslt for
generare the url to the images with the fo generator.
How can I recover this value in xlst? Or can I pass to all pipelines
this information one time?

Thank you.
Bye


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Question about XSLT parameters

2001-12-20 Thread Bartomeu Adrover


Thanks Pino, but I need send the same paramer to any pipelines. If I use
this method i have to wrinte in 10 or 11 places the parameter. Now I put
the parameter into pipeline, How can I assign the parameter to a transform?
Or can I retrieve the cgi env in the xslt or sitemap.
Giuseppe Di Pierri wrote:
Hi Bartomeu,
you can do what you want by :
1. inserting the following lines into sitemap.xmap:
 map:match pattern="yourpattern">
 map:generate src="docs/yourfile.xml"/>
 map:transform src="stylesheets/file-page2html.xsl">
 map:parameter
name="yourparameter" value="http://ensiola.uib.es:8080/"/>
 /map:transform>
 map:serialize/>
 /map:match>
2. getting the yourparameter value in the file-page2html.xsl file so:
xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
 !-- this def must be global !-->
 xsl:param name="page_number"/>
3. use you value whereever you want in the same file-page2html.xsl file
this
way:
 xsl:value-of select="$page_number"/>
Enjoy
pino
Original Message Follows
From: Bartomeu Adrover [EMAIL PROTECTED]>
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subject: Question about XSLT parameters
Date: Thu, 20 Dec 2001 11:02:38 +0100
I'm working in web development and I'm traying to design our web site
with xml and Cocoon2.
With the cocoon 2 is possible pass to an XSLT one parameter usin this
tag
parameter name="myparam"value="myvalue"/> in a pipeline. This parameter
is the name of server, in my case
http://ensiola.uib.es:8080/.
I need this information in the xslt for
generare the url to the images with the fo generator.
How can I recover this value in xlst? Or can I pass to all pipelines
this information one time?
Thank you.
Bye
 tomeu.adrover.vcf >>
-
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: [EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]>
_
Send and receive Hotmail on your mobile device: http://mobile.msn.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: [EMAIL PROTECTED]>
For additional commands, e-mail: [EMAIL PROTECTED]>


begin:vcard 
n:Adrover;Bartomeu
x-mozilla-html:FALSE
org:UIB;Servei de Càlcul i Informatizació
version:2.1
email;internet:[EMAIL PROTECTED]
adr;quoted-printable:;;Edifici Anselm Turmeda, Campus de la UIB=0D=0ACarretera de Valldemossa Km 7,5 ;Palma de Mallorca;Illes Balears;07071;Espanya
fn:Baromeu Adrover
end:vcard



-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Can a Transformer include multiple HTML documents?

2001-12-19 Thread Bartomeu Adrover

Hello, my idea is: create n pipelines that acces to the url's and get html
documents into xhtml. After that create an pipeline that include all this sources:

For all urls:
map:match pattern=url1
map:generate src=http://www.myurl.com/PredINM; type=html/
 map:serialize type=xml/
/map:match


   map:match pattern=allUrls
  map:aggregate element=root
map:part src=url1/
map:part src=url2/
.
map:part src=urln/
 /map:aggregate
 map:transform src=transfomer.xsl
 map:parameter name=use-request-parameters value=true/
 map:parameter name=use-browser-capabilities-db value=true/
  /map:transform
  map:serialize type=html/
   /map:match
I don't know if this sitemap xml is correct but I think that the idea is valid.


Bertrand Delacretaz wrote:

 Is it possible for a standard Transformer (XSLT? CInclude?) to retrieve
 multiple HTML documents based on a dynamically-built list of URLs?

 I'm thinking of the following scenario, but I'm not sure how to implement 2.

 1. Generator + Transformer build an XML document containing a list of http
 URLs (computed dynamically) that point to HTML documents.

 2. Transformer retrieves all (HTML) documents and builds a composite (XHTML)
 document for further processing

 This can certainly be done using XSP, but I'm wondering if there is an easier
 solution (would the CInclude Transformer accept HTML documents, for example?).

 --
  -- Bertrand Delacrétaz, www.codeconsult.ch
  -- web technologies consultant - OO, Java, XML, C++

 -
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]


-
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]