This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Problem passing value of variable using xsl:call-template


Hi everybody !  I have a problem passing value of parametr using
xsl:call-template and xsl:with-param.
   Thanks a lot in advance. Alex.

<?xml version="1.0"?>

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

  <xsl:output method="text"/>

    <xsl:template match="/">

       <xsl:apply-templates select="A/B/C/D">
       </xsl:apply-templates>

    </xsl:template>

    <xsl:template match="A/B/C/D">

      <xsl:text>111</xsl:text>

      <xsl:value-of select="E"/>
      ......................................

     <xsl:call-template name="Take-XYZ">

        <xsl:with-param name="XYZ"  select=" What should I specifiy here to get
result from template Take-XYZ ??????? " />

     </xsl:call-template>
    ......................................

   </xsl:template>

   <xsl:template name="Take-XYZ">

      <xsl:param name="XYZ">
           <xsl:value-of select="A/K/L/M"/>
      </xsl:param>

   </xsl:template>

</xsl:stylesheet>




 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]