oh no! an error in my example:

> <xsl:variable name="root-page-type"/>
> 
> <xsl:template match="/page">
>       <page type="{$root-page-type}">
>               <xsl:copy-of select="*"/>
>       </page>
> </xsl:template>

it should be xsl:param not xsl:variable, e.g.

<xsl:stylesheet
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"; 
  version="1.0">
  
        <xsl:param name="root-page-type"/>

        <xsl:template match="/page">
                <page type="{$root-page-type}">
                        <xsl:copy-of select="*"/>
                </page>
        </xsl:template>

</xsl:stylesheet>


---------------------------------------------------------------------
Please check that your question  has not already been answered in the
FAQ before posting.     <http://xml.apache.org/cocoon/faq/index.html>

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

Reply via email to