Hi

Am 04.02.2008 um 10:06 schrieb Jürgen Ragaller:



Am 04.02.2008 um 09:38 schrieb Andreas Hartmann:

[...]

The stylesheet adds the bxe_xpath attribute in the "edit" rendering mode and does some formatting of download links.

So it's needed then and the xhtml2xhtml.xsl step can't just be thrown out the way I did...?

Maybe the xhtml2xhtml Stylesheet can be modified to be more cform friendly - let me see, I think Thorsten suggested a modification when I was struggling with the cfrom topic late last year.


OK - found it:

Thorstens replay to my cform question:

In fallback://lenya/modules/xhtml/xslt/xhtml2xhtml.xsl we eat the head:

<xsl:template match="/xhtml:html">
  <html>
    <body>
      <div id="body">
        <xsl:if test="$rendertype = 'edit'">
          <xsl:attribute
name="bxe_xpath">/xhtml:html/xhtml:body</xsl:attribute>
        </xsl:if>
        <xsl:apply-templates select="xhtml:body/node()"/>
      </div>
    </body>
  </html>
</xsl:template>

try something like:
<xsl:template match="/xhtml:html">
  <html>
+   <head>
+  <xsl:apply-templates select="xhtml:head/node()"/>
+   </head>
    <body>
      <div id="body">
        <xsl:if test="$rendertype = 'edit'">
          <xsl:attribute
name="bxe_xpath">/xhtml:html/xhtml:body</xsl:attribute>
        </xsl:if>
        <xsl:apply-templates select="xhtml:body/node()"/>
      </div>
    </body>
  </html>
</xsl:template>

***


I can see, that xhtml2xhtml is also called from the xhtml-module sitemap. Do you consider adding the head like this a safe thing to do? - any possible side effects?


Thanks

Jürgen



null-oder-eins GmbH Zürich
web & graphic design

www.null-oder-eins.ch

[EMAIL PROTECTED]
Skype: callto://ragaller




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

Reply via email to