On 1/25/06, [EMAIL PROTECTED]
<[EMAIL PROTECTED]> wrote:
> > The easy and standard method is for "test2xhtml.xsl" to translate the
> > data to xhtml in the top level <DIV id="body">, then use the standard
> > "page2xhtml.xsl" to insert the "body" into the normal HTML.
> > "test2xhtml.xsl" should create a DIV, not HTML/BODY.
>
> so...if i understand correctly, my test2xhtml has to be:
>
>          <?xml version="1.0" encoding="ISO-8859-1" ?>
>          <xsl:stylesheet version="1.0"
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
> xmlns:xhtml="http://www.w3.org/1999/xhtml";
> xmlns:i18n="http://apache.org/cocoon/i18n/2.1";>
>          <xsl:param name="root"/>
>          <xsl:param name="document-id"/>
>          <xsl:param name="language"/>
>
>          <xsl:template name="login"/>
>          <xsl:param name="users-login"/>
>
>          <xsl:template match="content">
>          <div id="body">
>            <xsl:apply-templates />
>          </div>
>          </xsl:template>
>
>          <xsl:template match="rank_title">
>          <xsl:value-of select="."/>
>          </xsl:template>
>          </xsl:stylesheet>
>
> and the "body" is already insered into page2xhtml.xsl:
>
>            <div id="main">
>              <xsl:apply-templates select="xhtml:[EMAIL PROTECTED] = 'body']"/>
>            </div>
>
> but it doesn't work...i'm doing somethink wrong, but i don't know, what 
> exactly
> i'm doing wrong.

 <xsl:stylesheet version="1.0"
    xmlns="http://www.w3.org/1999/xhtml";

The match is for <xhtml:div id="body">.  That line adds the "xhtml:"
prefix to all the tags.  Namespaces are meant to make you crazy.

solprovider

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

Reply via email to