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

Re: Variable construction: Afterthought...

Subject: Re: Variable construction: Afterthought...
From: Jon Gorman <jonathan.gorman@xxxxxxxxx>
Date: Wed, 21 Sep 2005 09:24:41 -0500
gorman construction
I don't see why you needed to change the subject for this.  Ah well,
I'm just picky about that I guess.


Of course, I also am not sure where you are even having difficulty.

You mentioned it's in an external document.  Are you having trouble
getting the url from the other document?  See docuemnt().  But despite
that comment your approach looks like  you are just directly putting
the text into the variable.  Not sure why you're having problems with
this.

> Would it be better to do it this way:
>
> <xsl:variable name="helpUrl"
> select="http://info.uwe.ac.uk/myuwe/myMarks.asp"/>

Why ask?  It seems simple enough to just try.  What happens?

It'll fail most likely since you're giving xpath a raw text string
which it will try to proces.
Instead try

<xsl:variable name="helpUrl"
select="'http://info.uwe.ac.uk/myuwe/myMarks.asp'"/>

(there is an extra set of qutoation marks).

or even

<xsl:variable
name="helpUrl">http://info.uwe.ac.uk/myuwe/myMarks.asp</xsl:variable>

Is there something I'm missing?


Jon Gorman

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.