[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Default tunnel parameters.

Subject: Default tunnel parameters.
From: "Vladimir Nesterovsky" <vladimir@xxxxxxxxxxxxxxxxxxxx>
Date: Tue, 26 Aug 2008 07:23:12 -0700
 Default tunnel parameters.
Hello,

Can you please estimate the value reported in xsl:message in a
following stylesheet?
Saxon 9.1 reports value 2.
My expectation is 1.
If 2
is correct output then can you please justify it.

<xsl:stylesheet
version="2.0" 
  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:p="http://www.nesterovsky-bros.com">

  <xsl:template match="/">
<xsl:call-template name="p:test"/>
  </xsl:template>

  <xsl:template
name="p:test">
    <xsl:param name="index" as="xs:integer" select="1"/>
<xsl:param name="value" tunnel="yes" as="xs:integer" select="$index"/>
<xsl:choose>
      <xsl:when test="$index lt 2">
        <xsl:call-template
name="p:test">
          <xsl:with-param name="index" select="$index + 1"/>
</xsl:call-template>
      </xsl:when>
      <xsl:otherwise>
<xsl:message select="$value"/>
      </xsl:otherwise>
    </xsl:choose>
</xsl:template>

</xsl:stylesheet>

P.S. I'm asking this question here as
I have recieved no answer at
http://sourceforge.net/forum/message.php?msg_id=5193309.

Thanks.
--
Vladimir Nesterovsky
http://www.nesterovsky-bros.com

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.