I have an XML element that resembles the following;
<AccountNumber>123456 7</AccountNumber>
The value within the AccountNumber tag contains a space between the numbers (the 6 and 7 in the case above). I want to be able to use XSL to replace this whitespace with %20 so that I can place the...
I have the following XML....
<movie>
<title>Braveheart</title>
<star>Mel Gibson</star>
<studio>Universal</studio>
<ticketsales>$700,000,000</ticketsales>
</movie>
<movie>
<title>Payback</title>
<star>Mel Gibson</star>
<studio>Universal</studio>...
Another quick question.
I have this XML.
<Celebrity>
<TVShow>The Crocodile Hunter</TVShow>
<FirstName>STEVE</FirstName>
<LastName>IRWIN</LastName>
</Celebrity>
I want to display the value of the FirstName and LastName element using XSLT, but I want to display it as a title eg. Steve...
Hi, I have a question ....
If I want to place the CheckBoxName variable into the name and the CheckBoxValue variable into the value field of my checkbox, how do I use escape characters so as this work correctly???
<xsl:for-each select="//Holding">
<xsl:variable...
Hello,
I am trying to convert some XML to HTML using XSL. One thing I want to be able to do is check to see if an element exists, and if so display its value, and if it does not exist display something like a dash (-).
I know how to check if the element is empty but not if it exists within the...
Using XSL how do I check to see if an element contains a value. I have tried <xsl:if test="string()"/> and this does not work. I have tried <xsl:apply-template select="element"/> and then <xsl:if test="node()=''"/> and this does not work either. Any ideas??
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.