473,394 Members | 1,794 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

param syntax help

Why does this work:

<xsl:for-each select="//page[@subSite='monkey']">

but this does not?:

<xsl:param name="subSite">monkey</xsl:param>
<xsl:for-each select="//page[@subSite='$subsite']">
Nov 12 '05 #1
2 1092
* darrel wrote in microsoft.public.dotnet.xml:
Why does this work:

<xsl:for-each select="//page[@subSite='monkey']">

but this does not?:

<xsl:param name="subSite">monkey</xsl:param>
<xsl:for-each select="//page[@subSite='$subsite']">

^ ^

Remove the quote marks, it's otherwise a string and the processor
compares the attribute value to "$subsite" not "monkey".
Nov 12 '05 #2
> Remove the quote marks, it's otherwise a string and the processor
compares the attribute value to "$subsite" not "monkey".


Gah! My brain just doesn't work well on Fridays. Thanks, Bjoern!

-Darrel
Nov 12 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: kirashet | last post by:
Hello everybody, I tried to make a XSL:FO - Sheet where I can control if the PDF should be printed in portrait or landscape. My results so far: <xsl:param name="printingtype"...
17
by: Ross M. Greenberg | last post by:
I'm going nuts! I need an HTML line of the form <input type="hidden" name ="shipping_1" value="12.34"> where "12.34" represents a variable. Between <script></script> tags what is the format...
2
by: drs | last post by:
I am trying to figure out some sql syntax, and I could use some help. This is my first atempt at joins, so bear with me. I have a table (A) which looks like the following ID Data ...
0
by: N. Graves | last post by:
Hello and thanks for reading my note! I have a from call frm_Device and on this for I have a tab control with a subform call sfrm_Components. On the tab with the subform I have a Add record...
6
by: iam247 | last post by:
Hi I am a relative beginner with ASP and weak on syntax for sql statements. Basically I modify something which works. I have tblGroupContact with two fields both long integer - ContactID &...
2
by: Pete Mitchell | last post by:
I have a class called "Action" that has a Public member variable called colLinks that is a collection of other classes called "Links". (Actions contain Links) The problem I'm having is looping...
3
by: jared.pohl | last post by:
Hi guys.. When I try and run the following code it says that there is a missing operator.. SELECT curr.portfolio_code, curr.date, (curr.gross_index-mo1.gross_index)/mo1.gross_index AS...
3
by: Birky | last post by:
Hello, I’m hoping you can help me out with two issues I’m having with my code. I have an Access Report named Report_Project_Event_Log which I have calling a Form named “Custom_Code_lookup” which...
6
by: =?Utf-8?B?cm9kY2hhcg==?= | last post by:
hey all, i'm just trying to test datetime functions: DateTime dt1 = "9/15/2007"; DateTime dt2 = "9/17/2007"; DateTime dtResult; dtResult = dt2 - dt1; The above is what i'm trying to say...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.