Andreas Hartmann wrote:
> Joern Nettingsmeier wrote:
>> hi andreas, hi everyone!
>>
>>
>> after the recent migration to uuids, my language switching buttons are
>> broken. i used to do this in my page2xhtml.xsl:
>>
>> <a href="{$root}{$document-id}_en.html">english</a>, where the
>> variables are
>> <!-- /lenyabody-{rendertype}/{publication-id}/{area}/{doctype}/{url} -->
>> <map:match pattern="lenyabody-*/*/*/*/**">
>> ...
>>   <map:transform...>
>>      <map:parameter name="root" value="{base-url:{2}:{3}}"/>
>>      <map:parameter name="document-id"
>>             value="{page-envelope:document-id}"/>
>>
>> of course, this now produces links like
>> http://localhost:8888/soziologie/authoringba4ba940-2b8f-11db-8109-9e43e820a3df_en.html.
>>
>>
>> what is the new way to do it?
> 
> You get the path in the site structure (formerly known as document ID) with
> 
>   {doc-info:{pubId}:{area}:{uuid}:{language}:path}
> 
> I understand that this syntax is quite verbose, but the implicit
> page envelope syntax caused some problems - you have to be very
> careful when writing pipelines which can be accessed for arbitrary
> documents.

thanks for the help. can you elaborate on the problems with
{page-envelope:*}? i've been using it a lot in module sitemaps, but i
have this nagging feeling that i'm going to regret it some day.

some sort of "best practice" hints would be cool, maybe pointers to
publications or modules that Do It Right(tm) ?

best,

jörn




-- 
"I don't need backups. I need restore!" - Trad.

--
Jörn Nettingsmeier, EDV-Administrator
Institut für Politikwissenschaft
Universität Duisburg-Essen, Standort Duisburg
Mail: [EMAIL PROTECTED], Telefon: 0203/379-2736


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

Reply via email to