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

testing for existence of variables?

Subject: testing for existence of variables?
From: Matthew Haughey <matt@xxxxxxxxxxx>
Date: Tue, 20 Jun 2000 12:33:27 -0700
asp check existence of variable
I'm building up a discussion forum in XML & XSL and was wondering about the limits of XSL, and where I should separate the scripting in XSL from the scripting in the server-side language I'm using for the site (ASP in this case).

The XML content file will be dynamically generated, and if the visitor to the site has a cookie with their ID, the XML file will contain their user information in addition to the page content (it will look like this <user><id>1234</id></user>).

When I transform the content with XSL, I'd like to display a form field for posting comments to logged in users, and if they are not logged in, display a "login here" link.

What I want to know is, can I check for the existence of the <user> information and display some HTML if it exists, and otherwise present alternate HTML? Or should this check be done on the server side in the scripting layer instead?

Matt


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



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.