Thanks for your help but it works only in the page2xhtml.xsl and not on
other xsl files;
I wanted to use these parameters in breadcrumb.xsl. What I did then is to
add a transform tag in the publication-sitemap.xsl like for <map:transform
src="xslt/page/{4}.xsl">

<map:transform src="lenya/xslt/naviagetion/breadcrumb.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="language"
value="{page-envelope:document-language}"/>
</map:transform>


Then I added the parameters names into the breadcrumb.xsl
<xsl:param name="root"/>
<xsl:param name="document-id"/>
<xsl:param name="language"/>

When I create a link in my breadcrumb.xsl
<a href="{$root}{$document-id}.pdf">Download PDF</a>

The parameters return empty string... Does anyone has an idea ? This link
works however when I create the link in the page2xhtml.xsl file.

Thanks,
Seb.

-----Original Message-----
From: qMax [mailto:[EMAIL PROTECTED] 
Sent: 17 May 2005 10:13
To: Inizan, Sebastien (CDS-VPI)
Subject: Re: How to create a pdf link from the current URL


Monday, May 16, 2005, 10:10:40 PM, Inizan, Sebastien (CDS-VPI) wrote:

ISCV> Hey !

ISCV> I have set up the sitemap to translate my page into a pdf. However my
ISCV> problem is to display the correct url on my html page that will point
to
ISCV> this pdf. 

ISCV> EX:
ISCV> On my page /lenya/live/index.html , I would like a link that points to
ISCV> /lenya/live/index.pdf

ISCV> How can we find the current URL and create a link that will change the
html
ISCV> ending by a pdf ending ?

there are sitemap parameters passed to xhtml page formatting stylesheet,
in publication-sitemap.xmap, at match="lenyabody-*/*/*/*/**,
something like:
        <map:transform src="xslt/page/{4}.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="language"
value="{page-envelope:document-language}"/>
        </map:transform>

in stylesheet just use <a href="{$root}/{$document-id}.pdf">...</a>

-- 
 qMax


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to