473,503 Members | 756 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Need help transforming xml with an xslt

57 New Member
Hi I am looking for help with an xsl transform of an xml file. The problem is with <xsl:with-param>.

The following is what I have:

Expand|Select|Wrap|Line Numbers
  1. <xsl:param name="paramTest">$LINKNUM$</xsl:param>
  2.  
  3. <key name="$LINKNUM$">SELECT count(1) from applications</key>
  4.  
  5. <xsl:choose>
  6.       <xsl:when test="$paramTest = '0' ">
  7.             do this........
  8.       </xsl:when>
  9.  
  10.       <xsl:otherwise>
  11.             do this.........
  12.       </xsl:otherwise>
  13. </xsl:choose>
This select count returns 0 which is what I want but it never actually goes into the xsl:when part, it always falls into xsl:otherwise. Don't worry about the order of the tags etc I've just cut them out of the file
Aug 25 '09 #1
2 1513
moorcroft
57 New Member
Forget about it actually, I've just done it differently using a stored procedure.... :/
Aug 25 '09 #2
Dormilich
8,658 Recognized Expert Moderator Expert
ok, though I was wondering, how you assign the value of $paramTest. this surely can’t be done while running the transformation…?
Aug 25 '09 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

5
2150
by: Jody Greening | last post by:
Transforming with XSLT, Grouping elements until difference found. I am seeking some help with the following problem, I am fairly new at XSLT transformations, and my problem may lie in looking at...
3
4864
by: Sergio Otoya | last post by:
Hi all, I need to transform an xml document, using xsl to a HTML output. I can do this successfully using the XslTransform class as below: Dim oTrans As New XslTransform ...
5
4485
by: Jiho Han | last post by:
I do a transform of an xml document into another xml using XslTransform. In my xsl file, I specify using <xsl:output encoding="utf-8"/>. However, when my transform is done, the resulting xml is in...
4
2005
by: Cathie | last post by:
Hi All, I am trying to get my style sheet to work. It works fine in IE but I can't get it to work in .net. Below is the function I use for transforming, where advancedOptionsFile is the path...
5
1400
by: nospam | last post by:
I'm trying to transform an xml file that contains empty short elements like the following: <element attrib="abc"/> using the XmlTransform class. But I cannot seem to preserve the short format...
0
1144
by: Scott | last post by:
The following blog gives a neat example of how to transform directly into a node: http://blogs.msdn.com/xmlteam/ However, the code doesn't seem to work as it is presented in the blog. I have...
3
1964
by: Jens Jensen | last post by:
Hello, I need to generate a flat text file where aeach is made up os fields and space. To automate the process, i want to define an xml file that describe the file form mate in term of <Lines>...
1
1184
by: darrel | last post by:
I've been struggling for some time now getting a RSS app to work. I'm creating RSS from existing XML files (transforming via XSLT). The problem is that the page, itself, is still being sent at...
1
2057
by: scmorgan | last post by:
Hi All, I am trying to come up with a solution for transforming a complex type ie xml ... <document> <label> This is a <highlight> string</highlight> </label>
1
3438
by: CAM123 | last post by:
I have added: <br><xsl:value-of select="Line" /></br> to my XSLT stylesheet to get a line per repeating block. When I view the output as XML it looks perfect - one line per block. However...
0
7203
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
7282
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,...
1
6995
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7463
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...
0
5581
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3157
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1515
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
738
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

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.