You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@lenya.apache.org by Luis Zorita <lz...@pas.uned.es> on 2004/08/24 14:09:36 UTC

inserting images via xslt


Hi everybody:
I´m trying to insert a image  using a xslt.

<p><img src="../../images/redball.gif"/></p>

The problem is  when I want to use the same xslt for different  levels 
of depth of the document (second level in the preceding case).
Is there any protocol to place  so I don´t care about  this level . For 
instance: {$root}/images/redball.gif.
Thanks in advance
Luis Zorita

>


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


Re: retrieving client browser's IP in action

Posted by Andreas Hartmann <an...@apache.org>.
Pratik Das wrote:
> 
> I want to access the client browser's IP in my action class. Can anyone 
> help me out with this? I want to retrieve country name based on the IP 
> and return it as output parameter and finally pass this parameter to my 
> xsl where the country specific information will be displayed.

This is a plain Cocoon question, I suggest to ask it on the Cocoon
users list.

-- Andreas


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


Re: AW: Formatting text in index.xml

Posted by Andreas Hartmann <an...@apache.org>.
Christian Pfaff wrote:

> In that case you should use <strong></strong> instead of <b></b>
>  
> because it's xhtml.

Exactly. Maybe you should check out
http://www.w3schools.com/xhtml/default.asp


BTW, please do not send HTML messages to the list
(just plain text) and please follow the general
quoting guidelines.

http://www.digital-web.com/articles/how_to_write_effective_mailing_list_email/
http://www.netmeister.org/news/learn2quote2.html

-- Andreas




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


AW: Formatting text in index.xml

Posted by Christian Pfaff <ch...@she.net>.
In that case you should use <strong></strong> instead of <b></b>

because it's xhtml.


 -----Ursprungliche Nachricht-----
Von: Pratik Das [mailto:PratikD@skytechsolutions.co.in]
Gesendet: Montag, 30. August 2004 13:30
An: Lenya Users List
Betreff: Re: Formatting text in index.xml



  Yes I can use that if I directly edit index.xml. But I need to deliver the
site to a customer who wants to edit the pages using lenya editors. In Lenya
editor if you try to save with tags like <b>cccccc</b>, it throws an error "
              error: unknown element "b" from namespace
"http://www.w3.org/1999/xhtml



  "


        Andreas Hartmann <an...@apache.org>
        Sent by: news <ne...@sea.gmane.org>
        08/30/2004 04:58 PM Please respond to
              "Lenya Users List" <le...@cocoon.apache.org>


       To lenya-user@cocoon.apache.org
              cc
              Subject Re: Formatting text in index.xml







  Pratik Das wrote:

  >
  > How do I format text appearing in the body of an html. The content is
  > placed in index.xml on which the cmsbody template of page2xhtml.xsl is
  > applied. I want to make part of text bold, italic, use specific colors
etc.

  Can't you just use XHTML markup and CSS classes?

  -- Andreas


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



Re: Formatting text in index.xml

Posted by Andreas Hartmann <an...@apache.org>.
Pratik Das wrote:

> 
> Thanks Strong tag works. Ideally I would like to use a css but for using 
> a class I need to do something like <p>aaa<font class="boldclass">bold 
> text</font>aaaa</p> but again font tag is not supported.

Why that?

For block markup:

<p class="foo">
   ...
</p>

For inline markup:

<p>
    ... <span class="bar">...</span>
</p>


-- Andreas


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


Re: Formatting text in index.xml

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Yes thanks a lot. This works.



Jean Pierre LeJacq <jp...@quoininc.com> 
08/30/2004 06:17 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
Lenya Users List <le...@cocoon.apache.org>
cc

Subject
Re: Formatting text in index.xml






On Mon, 30 Aug 2004, Pratik Das wrote:

> Thanks Strong tag works. Ideally I would like to use a css but for using 
a
> class I need to do something like <p>aaa<font class="boldclass">bold
> text</font>aaaa</p> but again font tag is not supported.

I recommend this:

  <p>aaa<span class="boldclass">bold text</span></p>

-- 
JP



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



Re: Formatting text in index.xml

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Mon, 30 Aug 2004, Pratik Das wrote:

> Thanks Strong tag works. Ideally I would like to use a css but for using a
> class I need to do something like <p>aaa<font class="boldclass">bold
> text</font>aaaa</p> but again font tag is not supported.

I recommend this:

  <p>aaa<span class="boldclass">bold text</span></p>

-- 
JP



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


AW: Formatting text in index.xml

Posted by Christian Pfaff <ch...@she.net>.


>Thanks Strong tag works. Ideally I would like to use a css but for using a
class I need to
>do something like <p>aaa<font class="boldclass">bold text</font>aaaa</p>
but again font tag
>is not supported.

again because it's  Xhtml.

but you can apply the css stuff directly for p like

<p class="myBoldDefinition">...</p>

guess you know that you can define own css classes in
\lenya\pubs\<pubid>\resources\shared\css/page.css ...

There you can even set up patterns like xpath or the sitemap matchers to
define rules, selecting the p-tags you want to format.


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


Re: Formatting text in index.xml

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Thanks Strong tag works. Ideally I would like to use a css but for using a 
class I need to do something like <p>aaa<font class="boldclass">bold 
text</font>aaaa</p> but again font tag is not supported.



Jean Pierre LeJacq <jp...@quoininc.com> 
08/30/2004 05:38 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
Lenya Users List <le...@cocoon.apache.org>
cc

Subject
Re: Formatting text in index.xml






On Mon, 30 Aug 2004, Pratik Das wrote:

> Yes I can use that if I directly edit index.xml. But I need to deliver 
the
> site to a customer who wants to edit the pages using lenya editors. In
> Lenya editor if you try to save with tags like <b>cccccc</b>, it throws 
an
> error "
>
> error: unknown element "b" from namespace "http://www.w3.org/1999/xhtml

This is due to a misconfiguration of bxe.  You should use the
<strong> tag instead.  Look in the following file to fix this:

  lenya/lenya/resources/misc/bxeng/inc/config.xml

In general just use the xhtml elements with CSS to get the desired
styling.  All elements support the class attribute which you can use
in your css.

-- 
JP



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



Re: Formatting text in index.xml

Posted by Jean Pierre LeJacq <jp...@quoininc.com>.
On Mon, 30 Aug 2004, Pratik Das wrote:

> Yes I can use that if I directly edit index.xml. But I need to deliver the
> site to a customer who wants to edit the pages using lenya editors. In
> Lenya editor if you try to save with tags like <b>cccccc</b>, it throws an
> error "
>
> error: unknown element "b" from namespace "http://www.w3.org/1999/xhtml

This is due to a misconfiguration of bxe.  You should use the
<strong> tag instead.  Look in the following file to fix this:

  lenya/lenya/resources/misc/bxeng/inc/config.xml

In general just use the xhtml elements with CSS to get the desired
styling.  All elements support the class attribute which you can use
in your css.

-- 
JP



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


Re: Formatting text in index.xml

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Yes I can use that if I directly edit index.xml. But I need to deliver the 
site to a customer who wants to edit the pages using lenya editors. In 
Lenya editor if you try to save with tags like <b>cccccc</b>, it throws an 
error "


error: unknown element "b" from namespace "http://www.w3.org/1999/xhtml 

"



Andreas Hartmann <an...@apache.org> 
Sent by: news <ne...@sea.gmane.org>
08/30/2004 04:58 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
lenya-user@cocoon.apache.org
cc

Subject
Re: Formatting text in index.xml






Pratik Das wrote:

> 
> How do I format text appearing in the body of an html. The content is 
> placed in index.xml on which the cmsbody template of page2xhtml.xsl is 
> applied. I want to make part of text bold, italic, use specific colors 
etc.

Can't you just use XHTML markup and CSS classes?

-- Andreas


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



Re: Formatting text in index.xml

Posted by Andreas Hartmann <an...@apache.org>.
Pratik Das wrote:

> 
> How do I format text appearing in the body of an html. The content is 
> placed in index.xml on which the cmsbody template of page2xhtml.xsl is 
> applied. I want to make part of text bold, italic, use specific colors etc.

Can't you just use XHTML markup and CSS classes?

-- Andreas


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


Re: How does the navigation work and urls of links created.

Posted by Michael Wechner <mi...@wyona.com>.
Pratik Das wrote:

>
>
> When I click the first level, I want to see the second level nodes 
> below the first level of nodes and when I click on second level nodes 
> I want to see the third level nodes on a side menu.By which attribute 
> and value can I determine that a particular node is clicked. Is there 
> anyway to see the xml which gets generated on which the stylesheet for 
> tab and menu work to show the links and layout on the page.


I guess you need to customize the XSLT which is generating the navigation.

HTH

Michi

>
> regards
> Pratik



-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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


How does the navigation work and urls of links created.

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
My sitetree structure is like this:  containing three levels of nodes.
        <node id="index">
                <label xml:lang="de">Cmmmm</label>
                <label xml:lang="en">:Company</label>
                <node id="why" href="index.html">
                        <label xml:lang="en" >Why ...</label>
                                                                <node 
id="why11">
                                                              <label 
xml:lang="en" >Why ...</label>
      </node>
                </node>
                </node>
                               <node id="why2" >
                        <label xml:lang="en" >Why1 ...</label>
                </node>

When I click the first level, I want to see the second level nodes below 
the first level of nodes and when I click on second level nodes I want to 
see the third level nodes on a side menu.By which attribute and value can 
I determine that a particular node is clicked. Is there anyway to see the 
xml which gets generated on which the stylesheet for tab and menu work to 
show the links and layout on the page.

regards
Pratik

Re: retrieving client browser's IP in action

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Thanks Andreas,  the images come with this but the css is still not 
accessible. Both are accessed in the same manner.
Image: {$root}/images/logo.gif
css:{$root}/css/style.css




Andreas Hartmann <an...@apache.org> 
Sent by: news <ne...@sea.gmane.org>
08/25/2004 03:48 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
lenya-user@cocoon.apache.org
cc

Subject
Re: retrieving client browser's IP in action






Pratik Das wrote:

[...]

>         <map:act type="IPaddr">
>         <map:transform src="xslt/contentPageTemplate.xsl">
>           <map:parameter name="root" 
> value="{page-envelope:context-prefix}/{2}/{3}"/>

Using the action adds an additional context layer, which
means you have to reference the parameters of the parent
context:

{../2} instead of {2}

HTH,
-- Andreas


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



Re: retrieving client browser's IP in action

Posted by Andreas Hartmann <an...@apache.org>.
Pratik Das wrote:

[...]

>         <map:act type="IPaddr">
>         <map:transform src="xslt/contentPageTemplate.xsl">
>           <map:parameter name="root" 
> value="{page-envelope:context-prefix}/{2}/{3}"/>

Using the action adds an additional context layer, which
means you have to reference the parameters of the parent
context:

{../2} instead of {2}

HTH,
-- Andreas


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


Formatting text in index.xml

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
How do I format text appearing in the body of an html. The content is 
placed in index.xml on which the cmsbody template of page2xhtml.xsl is 
applied. I want to make part of text bold, italic, use specific colors 
etc.
regards
Pratik

Re: retrieving client browser's IP in action

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Here it goes...  IPaddr is my action name.
    <map:pipeline>
      <!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url} 
-->
      <map:match pattern="lenyabody-*/*/*/*/**">
        <map:aggregate element="cmsbody">
          <map:part src="cocoon://navigation/{2}/{3}/breadcrumb/{5}.xml"/>
          <map:part src="cocoon://navigation/{2}/{3}/tabs/{5}.xml"/>
          <map:part src="cocoon://navigation/{2}/{3}/tabs1/{5}.xml"/>
          <map:part src="cocoon://navigation/{2}/{3}/menu/{5}.xml"/>
          <map:part src="cocoon://navigation/{2}/{3}/search/{5}.xml"/>
          <map:part 
src="cocoon:/lenya-document-{1}/{3}/{4}/{page-envelope:document-path}"/>
        </map:aggregate>
        <map:select type="parameter">
          <map:parameter name="parameter-selector-test" value="{1}"/>
          <map:when test="view">
              <map:transform type="link-rewrite"/> 
          </map:when>
        </map:select>
        <map:act type="IPaddr">
        <map:transform src="xslt/contentPageTemplate.xsl">
          <map:parameter name="root" 
value="{page-envelope:context-prefix}/{2}/{3}"/>
          <map:parameter name="url" value="{5}"/>
          <map:parameter name="document-id" 
value="{page-envelope:document-id}"/>
          <map:parameter name="document-type" 
value="{page-envelope:document-type}"/>
          <map:parameter name="userIP" value="{userIP}"/>
        </map:transform>
        </map:act>
        <map:serialize type="xml"/>
       </map:match>

    </map:pipeline>



Michael Wechner <mi...@wyona.com> 
08/25/2004 03:31 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
Lenya Users List <le...@cocoon.apache.org>
cc

Subject
Re: retrieving client browser's IP in action






Pratik Das wrote:

>
> Thanks Michael, I managed retrieve the IP. I can't use the request 
> input module since I need to do a look up and retrieve the country code.


ok

> Btw I am still facing a problem with my publication-sitemap. When I 
> put the map:act tag outside the  map:match tag I see a page not found 
> message. If I put it around map:transform all the images and css get 
> unreferenced.


can you post your sitempap "code" snippet

Thanks

Michi

> regards
> Pratik
>
>
> *Michael Wechner <mi...@wyona.com>*
>
> 08/25/2004 02:44 PM
> Please respond to
> "Lenya Users List" <le...@cocoon.apache.org>
>
>
> 
> To
>                Lenya Users List <le...@cocoon.apache.org>
> cc
> 
> Subject
>                Re: retrieving client browser's IP in action
>
>
>
> 
>
>
>
>
>
> Pratik Das wrote:
>
> >
> > I want to access the client browser's IP in my action class. Can
> > anyone help me out with this?
>
>
> check the servlet API and get it from the request, which you can receive
> within the action (HttpRequest)
>
> (see as an example classes within the Lenya source)
>
> > I want to retrieve country name based on the IP and return it as
> > output parameter and finally pass this parameter to my xsl where the
> > country specific information will be displayed.
>
>
> maybe you can use the "request input module" within the sitemap.
>
> But yes these are rather Cocoon questions ;-)
>
> HTH
>
> Michi
>
> > regards
> > Pratik
>
>
>
> -- 
> Michael Wechner
> Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
> http://www.wyona.com              http://cocoon.apache.org/lenya/
> michael.wechner@wyona.com                        michi@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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



Re: retrieving client browser's IP in action

Posted by Michael Wechner <mi...@wyona.com>.
Pratik Das wrote:

>
> Thanks Michael, I managed retrieve the IP. I can't use the request 
> input module since I need to do a look up and retrieve the country code.


ok

> Btw I am still facing a problem with my publication-sitemap. When I 
> put the map:act tag outside the  map:match tag I see a page not found 
> message. If I put it around map:transform all the images and css get 
> unreferenced.


can you post your sitempap "code" snippet

Thanks

Michi

> regards
> Pratik
>
>
> *Michael Wechner <mi...@wyona.com>*
>
> 08/25/2004 02:44 PM
> Please respond to
> "Lenya Users List" <le...@cocoon.apache.org>
>
>
> 	
> To
> 	Lenya Users List <le...@cocoon.apache.org>
> cc
> 	
> Subject
> 	Re: retrieving client browser's IP in action
>
>
>
> 	
>
>
>
>
>
> Pratik Das wrote:
>
> >
> > I want to access the client browser's IP in my action class. Can
> > anyone help me out with this?
>
>
> check the servlet API and get it from the request, which you can receive
> within the action (HttpRequest)
>
> (see as an example classes within the Lenya source)
>
> > I want to retrieve country name based on the IP and return it as
> > output parameter and finally pass this parameter to my xsl where the
> > country specific information will be displayed.
>
>
> maybe you can use the "request input module" within the sitemap.
>
> But yes these are rather Cocoon questions ;-)
>
> HTH
>
> Michi
>
> > regards
> > Pratik
>
>
>
> -- 
> Michael Wechner
> Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
> http://www.wyona.com              http://cocoon.apache.org/lenya/
> michael.wechner@wyona.com                        michi@apache.org
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: lenya-user-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: lenya-user-help@cocoon.apache.org
>
>


-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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


Re: retrieving client browser's IP in action

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
Thanks Michael, I managed retrieve the IP. I can't use the request input 
module since I need to do a look up and retrieve the country code. Anyway 
I have registered myself with cocoon and hopefully cocoon related 
questions will not come here. Btw I am still facing a problem with my 
publication-sitemap. When I put the map:act tag outside the  map:match tag 
I see a page not found message. If I put it around map:transform all the 
images and css get unreferenced.
regards
Pratik



Michael Wechner <mi...@wyona.com> 
08/25/2004 02:44 PM
Please respond to
"Lenya Users List" <le...@cocoon.apache.org>


To
Lenya Users List <le...@cocoon.apache.org>
cc

Subject
Re: retrieving client browser's IP in action






Pratik Das wrote:

>
> I want to access the client browser's IP in my action class. Can 
> anyone help me out with this? 


check the servlet API and get it from the request, which you can receive
within the action (HttpRequest)

(see as an example classes within the Lenya source)

> I want to retrieve country name based on the IP and return it as 
> output parameter and finally pass this parameter to my xsl where the 
> country specific information will be displayed.


maybe you can use the "request input module" within the sitemap.

But yes these are rather Cocoon questions ;-)

HTH

Michi

> regards
> Pratik 



-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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



Re: retrieving client browser's IP in action

Posted by Michael Wechner <mi...@wyona.com>.
Pratik Das wrote:

>
> I want to access the client browser's IP in my action class. Can 
> anyone help me out with this? 


check the servlet API and get it from the request, which you can receive
within the action (HttpRequest)

(see as an example classes within the Lenya source)

> I want to retrieve country name based on the IP and return it as 
> output parameter and finally pass this parameter to my xsl where the 
> country specific information will be displayed.


maybe you can use the "request input module" within the sitemap.

But yes these are rather Cocoon questions ;-)

HTH

Michi

> regards
> Pratik 



-- 
Michael Wechner
Wyona Inc.  -   Open Source Content Management   -   Apache Lenya
http://www.wyona.com              http://cocoon.apache.org/lenya/
michael.wechner@wyona.com                        michi@apache.org


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


retrieving client browser's IP in action

Posted by Pratik Das <Pr...@skytechsolutions.co.in>.
I want to access the client browser's IP in my action class. Can anyone 
help me out with this? I want to retrieve country name based on the IP and 
return it as output parameter and finally pass this parameter to my xsl 
where the country specific information will be displayed.
regards
Pratik

Re: inserting images via xslt

Posted by Andreas Hartmann <an...@apache.org>.
Hi Luis,

how is it going?


Luis Zorita wrote:

> I´m trying to insert a image  using a xslt.
> 
> <p><img src="../../images/redball.gif"/></p>
> 
> The problem is  when I want to use the same xslt for different  levels 
> of depth of the document (second level in the preceding case).
> Is there any protocol to place  so I don´t care about  this level . For 
> instance: {$root}/images/redball.gif.

Basically, there are two ways to achieve this.

1) You can pass the context prefix, publication ID and area
    to your stylesheet:

     http://wiki.apache.org/cocoon/SimpleTransformations

2) You can pass the URL to your stylesheet and use a recursive
    template to compute a relative path to the area root URL.


Default Publication:
====================

If you want to insert the image in {doctype}2xhtml.xsl, you have to
setup the parameter passing on your own.

If you want to insert the image in page2xhtml.xsl, you can use the
existing parameter "root", exactly the way you suggested:
{$root}/images/redball.gif


Greetings from Switzerland,
-- Andreas


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