cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From M. Amin <>
Subject How can i dynamically apply correctly xsl stylesheet to xml file ?
Date Fri, 18 May 2001 02:13:54 GMT
Dear All,
 i tried to apply xsl file to xml file by using the following code

<xsl:template match="page">

 <xsl:variable name="lang">
    <xsl:value-of select="locale/lang"/>

   <xsl:processing-instruction name="cocoon-process">type="xslt"</xsl:processing-instruction>
   <xsl:processing-instruction name="xml-stylesheet">
          <xsl:when test="$lang='ar'">Categories_ar.xsl</xsl:when>

   <xsl:apply-templates select="@*" />
   <xsl:apply-templates select="node()" />

 <xsl:template match="*|@*">
  <xsl:apply-templates select="@*" />

but the data in the xml file dumped without a stylesheet applied to it.

Any help will be appreciated.

 M. Amin

Please check that your question has not already been answered in the
FAQ before posting. <>

To unsubscribe, e-mail: <>
For additional commands, e-mail: <>

View raw message