Search found 177 matches

by LotsOCds
Mon Dec 04, 2017 3:15 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

You changed more than I instructed. Please do exactly the following: Try replacing the "<xsl:text> ore</xsl:text>" in this line <xsl:value-of select="length/@hours"/><xsl:text> ore </xsl:text> with this code: <xsl:choose> <xsl:when test="length/@hours > 1"><!-- se la lunghezza delle ore ha valore 1 ...
by LotsOCds
Sun Dec 03, 2017 2:50 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

Quick fix. Maybe this does what you are looking for or at least gets you closer. I do not have a computer with me so I cannot test this but from inspection it looks like it should work. Try replacing the "<xsl:text> ore</xsl:text>" in this line <xsl:value-of select="length/@hours"/><xsl:text> ore </...
by LotsOCds
Sat Dec 02, 2017 4:01 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

in red should not be visible 2 ore 52 minuti ore inserire la durata IMDB ora 30 minuti 46 secondi ora Please look at the flow of your code and recheck the logic. You need to rearrange things a little bit. Each of these "ore" are because the code below always runs. It will write either "ore" or "ora...
by LotsOCds
Sat Dec 02, 2017 3:52 pm
Forum: Using CATVids
Topic: how to count the lines in field notes?
Replies: 5
Views: 755

Re: how to count the lines in field notes?

question: how to count the lines in field notes? :| :roll: example: in the note field there are 10 movies (or lines) and 6 lines of commentary the code should analyze each movie and give as a result 10 (by skipping the first 6 lines, beginning with the seventh) This is possible but it will require ...
by LotsOCds
Sun Nov 26, 2017 8:14 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

these are the results of the code :| 02:52:00 -----> empty ???????????????????? That is right because length/@hours='2'. I will say it again: Your code tests two times for length/@hours='0' so the there is no display unless hours=0. Hours is not equal to 0 so there is no display. 00:00:00 -----> in...
by LotsOCds
Sun Nov 26, 2017 7:22 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

Alex Ivanovich wrote:the "hour" problem remains :(
LotsOCds wrote:Remember your code tests for length/@hours='0' so no hours will be shown
I do not understand what you mean by the "hour" problem. Your code tests two times for length/@hours='0' so the there is no display unless hours=0.
by LotsOCds
Sun Nov 26, 2017 5:17 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

There are no hours in the XML representation "30:22"

Remember your code tests for length/@hours='0' so no hours will be shown by <xsl:value-of select="length"/>
by LotsOCds
Sun Nov 26, 2017 4:23 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

Alex Ivanovich wrote::roll: :| :roll: I don't understand
Please be more specific.
by LotsOCds
Sun Nov 26, 2017 3:42 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

Alex Ivanovich wrote:This work in half
view the link
minutes
but it does not show the hours :|
Look at the XML! Example:

Code: Select all

<length hours="0" minutes="30" seconds="22">30:22</length>
the code does not work
I don't understand. The code does not look complete. There is no code to show minutes or seconds.
by LotsOCds
Sat Nov 25, 2017 9:55 pm
Forum: Using CATVids
Topic: [Solved] if length and 0 displays link
Replies: 22
Views: 1924

Re: if length and 0 displays link

does not work :| :roll: Sure it does! The problem now is with the logic in your code. Can you spot the problem? Here's an abbreviated version of your code that should make the logic problem clear. <xsl:if test="length/@hours>0"> ... <xsl:choose> <xsl:when test="length='0:00'"> </xsl:when> </xsl:cho...