[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: Thu, 01 Dec 2011 11:39:08 +0000
Re:  can a value of a parameter depends on a other valu
On 01/12/2011 11:23, Roelof Wobben wrote:
The are declared by Symphomny CMS which I use to make this website.

They may be declared in some API for some programming language, but unless you declare parameters or variables of that name in your xsl stylesheet use of $page in xpath will be a syntax error referencing an undefined variable.


Could I suggest that you are approaching this the wrong way, posting so much code that has so many syntax errors it is impossible for us to guess what the intended use is and offer any help.

When learning a new programming language it is best _not_ to start with the problem that you are actually trying to solve, but rather start with a "hello world" program.

first make a stylesheet that just makes an html page that says hello world and check that you can get that to run and "hello world" to appear in a browser.

then make a stylesheet that makes a page that says
"the page is <xsl:value-of select="$page"/>
this will check that you can get the values from your CMS passed in to XSLT.

_then_ you can start to think about to make conditional tests based on those values.

David




-- google plus: https:/profiles.google.com/d.p.carlisle

________________________________________________________________________
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.