On 11/18/05, Gustavo Vilela de Carvalho <[EMAIL PROTECTED]> wrote:
>    How can I make a page in live different from authoring ?  I mean, in live,
> a page without the menus, for instance.

Here is the simplest method.  It would really complicate maintenance,
since there are separate files for Live and Authoring.

FILE: publication-sitemap.xmap
...
      <map:match pattern="lenyabody-*/*/*/*/**">
...
        <map:transform src="xslt/page2xhtml-{4}.xsl">
Change to:
        <map:transform src="xslt/page2xhtml-{4}-{3}.xsl">

Then duplicate all the xslt/page2xhtml-???.xsl files with names like:
xslt/page2xhtml-???-authoring.xsl
xslt/page2xhtml-???-live.xsl

== OR  ==
Much better, make (minor) changes in the XSL files.

Add a parameter to the transformation:
        <map:transform src="xslt/page2xhtml-{4}.xsl" label="debug">
 <map:parameter name="area" value="{3}"/>

Add the param to your XSL:
<xsl:param name="area"/>

Add branching code within your XSL's HTML generation:
<xsl:when test="$area = 'live'">Live</xsl:if>
<xsl:when test="$area != 'live'">Not Live</xsl:if>
<xsl:when test="$area = 'authoring'">Authoring</xsl:if>

Check out the xsl:choose tag for better branching.

solprovider

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

Reply via email to