On Wed, 2005-09-07 at 14:41 +0100, Kubiak, Thomas wrote:
> Hello guys.
>  
> We made several templates (doctypes) in Lenya. Those templates use tables
> for better alignment of text and so on. For the users to be able to see
> where they are typing the border size is set to "1".
>  
> Now I want to change that in the other views. So when looking at the same
> document in the live tab, those table should have a table border of "0".
>  
> Any ideas how to do this ?

You could pass the area (authoring or live) as a parameter to the xsl.

In publication-sitemap.xmap add the last line with the area to the
following block:

<map:transform src="xslt/page2xhtml-{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:parameter name="area" value="{3}"/>
</map:transform>

Then declare the area parameter in page2xhtml.xsl (or the xsl
corresponding to your doctype) and use it to decide about the table
border (with xsl:choose or something like that).

There may be better solutions (maybe different stylesheets for different
areas?), but this one was the first to come to my mind. 

Or maybe you just wanted to display the table borders in the editor? 

hth,
Josias


>  
> Regards and thanks
>  
> Thomas
> 
> ---------------------------------------------------------------------
> 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