Questions tagged [value-of]

138 questions
0
votes
3 answers

Using valueOf / toString

I've looked around but can't find a definitive answer.. I'm new to Javascript so hoping to find an answer in simple terms I'm learning about toString / valueOf, which are described as essentially doing the same thing Can someone please explain why…
AddB
  • 47
  • 4
0
votes
5 answers

XSLT - how to get the name value of a node?

We have (perhaps unusually formatted) XML files that (very simplified) look like this: John Doe
Somewhere1
...
0
votes
1 answer

I would like to get the parameter with this program without having to force the keyword contained in the EubotDictionary class

As you can see, these are my three classes I use for this program .. I can not find the way to let me return the two parameters in the sentence even if I do not write the keyword that I have in the array .. i would like to find the way i allow me to…
Serra
  • 1
  • 2
0
votes
1 answer

XSL-FO display text based on percentage of value

I have 8 main categories. Each category has their own scores from 0-100. I need to display 5 different texts based on the percentage range of that score. For example: Category 1 - score is 46% Show these texts when the score is between these…
Meredydd
  • 41
  • 6
0
votes
1 answer

XSL select value of xml attribute as integer

i am trying to select some xml attributes from decimal values to integers. For example The value of @quantity must be selected as integer i.e. only 1. I am using Is there a way to select…
evilsoldier
  • 161
  • 12
0
votes
1 answer

Can we change wrapper class into primitive data types?

can we change wrapper to primitive ?if not then what is happening in this code int I = Integer.valueOf(46); System.out.println(I); I am not getting any error.
garvendra
  • 11
  • 1
0
votes
1 answer

xsl value of as xsl element name

I have the following structure 123 property 1 value 1 123 property…
Pieter_mov
  • 15
  • 7
0
votes
3 answers

String cannot be converted to double

I am trying to make a calculator with Java, and everything worked normally until this error popped up: imcompatible types: String cannot be converted to double Invalid value type 'String' for format specifier '%.0f', parameter 1 This is the…
Timppa
  • 353
  • 2
  • 7
  • 24
0
votes
1 answer

Rendering tweets on the web page

I have a web page which has a part to render filtered entries from twitter. This part of the page is created using XSLT (I am using Umbraco CMS). The problem is that when there is special characters such as ' in the twitter entry, although I used…
Nami
  • 1,215
  • 11
  • 21
0
votes
1 answer

XSLT newbie - XML import into MS Access leaves element values blank

I have been writing an (incredibly simple) XSLT to get MS Access to read this XML document that I get from another software package, and I am having trouble getting the values of the elements to transfer over. When I source the XML document and…
Kyle
  • 5
  • 4
0
votes
1 answer

XSL/XML: Elements are placed in wrong order

I want to create text which uses 3 XML elements and adds some characters between them, but when I type it like that all text lands after those XML elements (screenshot) How do I make it look like in xsl? Joel
0
votes
0 answers

Access enum.valueof() from apache camel route

I am comparatively newbie to apache camel. I am working on route called 'Upgrade' using Java DSL. I have java bean called 'Action' which has an enum, public enum bundle{ AAA("Monthly AAA Bundle"), BBB("Monthly BBB Bundle"); private String…
heta shah
  • 11
  • 2
0
votes
1 answer

How to concatenate xsl:value-of with separator

Given XML: I wanted to build a string that output: 2015-09-30 This worked:
Caroline
  • 167
  • 1
  • 11
0
votes
2 answers

XSL - Value of select with several sub-nodes matching

This is my first time working with XSLT files. I have to change a report using a XSL file and I have the following problem: I have 3 variables which have to match to identify my right XML tag One of these variable is defined in a sub-sub-tag My…
0
votes
1 answer

whether valueOf() is called when integer is printed?

int x = 5; String s = "x = " + x; In this case valueOf() method is called when primitive type is converted to String. But if we do System.out.print(x); Then does the valueOf() method gets called?