Questions tagged [xsl-choose]

Tests multiple conditions in conjunction with the `` and `` elements.

The <xsl:choose> element is used in conjunction with <xsl:when> and <xsl:otherwise> to express multiple conditional tests.

If no <xsl:when> is true, the content of <xsl:otherwise> is processed.

If no <xsl:when> is true, and no <xsl:otherwise> element is present, nothing is created.

Syntax

<xsl:choose>

  <!-- Content:(xsl:when+,xsl:otherwise?) -->

</xsl:choose> 
27 questions
0
votes
1 answer

xslt 1.0 get data from dynamic node-set in variable

A variable is being used to store related record information The variable has been updated to dynamically select, depending on results of a match, eg
0
votes
0 answers

Argument k is missing with no default

mylike <- function(thetha){ result <- sum((lchoose(2*pi*sigma(nlmodel)^2)* (exp((-1/(2*sigma(nlmodel)^2))* (2*x + thetha[2]+thetha[1])/(thetha[2]+x))))) return(-result) } Error in…
0
votes
0 answers

Having problems applying xsl:choose

I am having problems applying xsl:choose in my xslt document, trying to transform xml to html. The xml document looks like this (it's german) and so on... now, in my html document I created a table that shows the moviename (Filmtitel) and then the…
Hanna
  • 1
0
votes
1 answer

Using xsl:variable to set another variable using xsl:choose -> Invalid property

I'm trying to define some standard colours to use elsewhere in an XSLT, but the following gives an error:
Dave The Dane
  • 650
  • 1
  • 7
  • 18
0
votes
1 answer

xsl choose ignoring the when elements and only outputting the otherwise

I have an xslt template that i use for converting data, the one i have right now has a choose statement with a bunch of when clauses for each eventuality, the output given is that it seems to ignore all the when's and just goes straight to the…
0
votes
1 answer

XSL to Excel: Choose not processing formula

I declared a variable with a simple Excel formula (not the formula I will eventually use, just something simple for testing) Then I am trying to use a Choose to determine if the…
Sean Perryman
  • 29
  • 1
  • 1
  • 7
0
votes
1 answer

xsl:choose Expression must evaluate to a node-set

I am working with C# and XSLT 2.0. I am having problem with one of templates, it seems to be falling over statement. Values passed are Key - Value pairs and all but two values are decimals. Intention is to format decimals with 2 decimal…
Matas Vaitkevicius
  • 58,075
  • 31
  • 238
  • 265
0
votes
1 answer

XSLT1.0 find unknown elements in XML and put them elsewhere

Im not sure if the headline is correct. I have a XML-file looking like this: XML-FILE
23 random sometext 1
meister_reineke
  • 364
  • 1
  • 14
0
votes
1 answer

XSL count number of specific element

So I'm trying to print slightly different text depending on how many elements there are in a parent element. The code that is giving me trouble is the when xsl code
Brendon Rother
  • 119
  • 4
  • 17
0
votes
2 answers

Reorder nodes returned from xsl:choose

What would be an efficient way to reorder a group of nodes selected using xsl:choose (XSLT 1.0). Below is the sample source XML: MilkyWay
thinkster
  • 586
  • 2
  • 5
  • 19
0
votes
1 answer

How to get root element tag only once under for each loop?

I need to get the final output structure xml as below for my project. but I'm facing few issues with this code. STNDBY/CHG FEE/NO RFND/ CXL BY FLT DT/ 01…
0
votes
1 answer

xsl choose in concat

I have the following data: XML 30 -350 -250 -50
Thevagabond
  • 323
  • 2
  • 9
  • 34
1
2