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]