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

Re: can a value of a parameter depends on a other valu

Subject: Re: can a value of a parameter depends on a other value
From: David Carlisle <davidc@xxxxxxxxx>
Date: Wed, 30 Nov 2011 10:47:01 +0000
Re:  can a value of a parameter depends on a other valu
On 30/11/2011 10:22, Roelof Wobben wrote:



Hello,




This script does not work

you are posting a lot of questions but not really giving anyone any clues that could enable us to help.



<xsl:with-param name="articlesperpage"> <xsl:choose> <xsl:when test=" $value = 2005-02 and $page = 1">2</xsl:when> </xsl:choose> </xsl:with-param>


I see now these error messages :



The error message clearly states that you have used xsl:with-param at a place where it is not allowed, and lists the places where it is allowed.
presumably you have used it in some other place but as you only posted the with-param and not show where it was, we can't help.


Incidentally

$value = 2005-02

is legal but tests if $value has the value 2003. If you meant to test for the string 2005-02 then you need quotes
$value = '2005-02'


XSLTProcessor::importStylesheet(): element with-param is not allowed within that context

XSLTProcessor::importStylesheet(): element choose only allowed within a template, variable or param

XSLTProcessor::importStylesheet(): xsltParseStylesheetTop: unknown with-param element

XSLTProcessor::transformToXml(): No stylesheet associated to this object


David


________________________________________________________________________ The Numerical Algorithms Group Ltd is a company registered in England and Wales with company number 1249803. The registered office is: Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. ________________________________________________________________________


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.