I know that the title is working, as it goes into the different if statements. However the both the link, BGColor and textColor is not working. Any ideas why?
The nasty source code was for the style background color.
The part of the font was a problem, cause the $textColor is the color of the text located inside sliderImagetitle. So how do I do that work around so the tekst in going to be inside the <font> / </font>?
You are totally right, the font was not the attritube, the color was. It is working perfectly! Thanks again. Any think I should do in order for you to get some kind of credit (if this system works with credit).
Now my last problem seems to be the link, I added a "relative links" in my media type, and though I could use that one to give links around. But it does not seem to send any data. Is there a better way to this, so it is still easy for the user to use?
Getting property value from media item and inserting them
Hallo everyone
I need some help getting some textfield info into my XSLT, it sounds quite easy, but I can't figure out how to do it. My kode looks like this:
I have bolded the places where the problem is.
I know that the title is working, as it goes into the different if statements. However the both the link, BGColor and textColor is not working. Any ideas why?
You need xsl:attribute
Rich
I substitude:
With:
Correct?
Got the error message:
Et navn kan ikke begynde med tegnet '<', hexadecimal værdi 0x3C.
Translated: A name can't begin with the sign '<', hex value 0x3C
try
damn editor....
I give up with the editor, but it needs to be "value-of select" (see the space)
Rich
New post so you get a notification.
However, I reread your post, don't put the style there, it works like this:
<xsl:attributename="style">
</xsl:attribute>
</li>
Did not see my own mistake in the editor too, but it is with a space (If there was only missing 1).
Thanks a lot! It is now working!
I have notice that all this is coming in the html source code, what is that?

					
Another problem with the font part, because that need a closing tag at the end. How do I do that?
I though I could do like this:
To get rid of the nasty source code, just remove all the spaces you don't need, so...
<h1><xsl:attribute name="font">#<xsl:value-of select="sliderImageTitle:/></xsl:attribute></h1>
Rich
Sorry I was not clear enough.
The nasty source code was for the style background color.
The part of the font was a problem, cause the $textColor is the color of the text located inside sliderImagetitle. So how do I do that work around so the tekst in going to be inside the <font> / </font>?
Font is not an attribute, so just use:
<font><xsl:value-of select="sliderImageTitle"/></font>
If I have not understood correctly, please post the HTML mark up you are trying to achieve.
Rich
You are totally right, the font was not the attritube, the color was. It is working perfectly! Thanks again. Any think I should do in order for you to get some kind of credit (if this system works with credit).
Now my last problem seems to be the link, I added a "relative links" in my media type, and though I could use that one to give links around. But it does not seem to send any data. Is there a better way to this, so it is still easy for the user to use?
Hey Matias,
I would open up a new post if you have a new question.
Rich
is working on a reply...