Questions tagged [value-of]

138 questions
0
votes
1 answer

XSL, SUM & Multiply with Condition

Im doing an assignment for University (so im new to XSL coding) in making a quasi ecommerce site, and will provide as much detail as i can so it makes sense. Sample XML Data: 50001 Samsung Galaxy…
BlissSol
  • 374
  • 10
  • 23
0
votes
1 answer

Java: Getting object associated with enum

I have an ArrayList full of custom objects. I need to save this ArrayList to a Bundle and then retrieve it later. Having failed with both Serializable and Parcelable, I'm now simply trying to somehow save the objects that are associated with the…
Zippy
  • 3,826
  • 5
  • 43
  • 96
0
votes
1 answer

NoSuchMethodError for calling an Enum subclass type's valueOf() with reflection?

Luckily, to solve this problem of mine, I could use Java: instantiating an enum using reflection (the following line: Enum.valueOf((Class) class.forName("me.example.enums.MyEnumType"), value); ), however I am still curious why it didn't work…
EpicPandaForce
  • 79,669
  • 27
  • 256
  • 428
0
votes
4 answers

java enums - cannot convert from MyClass.Result to int

I have issues storing an enum value and then querying it via the toString() method. I require to handcode the numbers. How do I safely override my toString() ? public enum Result { SUCCESS(0), INVALID_UPLOAD_KEY(-20), …
Nederealm
  • 447
  • 4
  • 15
0
votes
2 answers

Entry XML tag is causing the XSL value-of to not work

I have a (simplified) XML file I'm trying to transform: Hello, Hello. Wrapping my…
daniel9x
  • 755
  • 2
  • 11
  • 28
0
votes
1 answer

xslt value-of output doubts

I'm studing XSLT and XML for an exam. I've this XML document: The whole xml is like this:
  • <strong>blablablabla
  • I want to show the text in strong and bold letters (like this) and I want to show the…
    Siyah
    • 2,852
    • 5
    • 37
    • 63
    0
    votes
    2 answers

    XSL - Do I need a Value-of?

    red ......... This is a portion of my XSL transformation document. When I process it, the red comes out…
    Maurice Tempelsman
    • 895
    • 2
    • 11
    • 13
    0
    votes
    4 answers

    ValueOf(80,8) vs toString(80,8) in Java

    I have a couple of question related to these wrapper classes' methods. Firstly, why does the method Long (or Integer) take a String as a parameter in the valueOf method? and instead it takes a numeric primitive in the toString method? (see the below…
    Rollerball
    • 12,618
    • 23
    • 92
    • 161
    0
    votes
    1 answer

    set selected attribute of html option element within select based on outer for-each index

    I have a list of items, which I want to iterate through and for each iteration, I would like to create a drop down list and then by default select the item based on the current overall index. The example will make it very clear. Here's the…
    Wolfgang
    • 62
    • 1
    • 1
    • 5
    0
    votes
    4 answers

    XSLT generates extra line-breaks

    In XSLT, using , it generates a line break before the rendered value and another one after it. Here comes an example: "" And the rendered…
    Amin Abu-Taleb
    • 4,423
    • 6
    • 33
    • 50
    0
    votes
    1 answer

    XSL, issue with getting xsl:value-of inside a for-each

    I've got an XML with diferent nodes: Física Informàtica and, inside of the for-each, I want to…