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...
Hi, I have a question that follows on from this thread. Above GiffordS wrote....
You do have to be careful trying to use XSL in your scripts where you try to assign values to objects that would require a "" around the value. You may have to use escape characters to get the referrence...
Angel2228,
We recently did an analysis of XMLSpy, Turbo XML, XML Notepad and XML Authority for the needs of one of our clients. We determined that for their needs XMLSpy was hte most user friendly editor. They are using it for XML, schema, and XSL development. The next best was XML Authority.
Voodoo Boy,
We have been having the same problem all week. Initially, we downloaded MSXML 3.0 but it still did not work. Then we realised we had not installed the new version in replace mode, so we were effectively still running the old version.
To install MSXML 3.0 SP1 in replace mode run...
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...
Try this..........
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Also, can you have:
<xsl:if match=".[NAME = $myatom]">
I always thought it had to be:
<xsl:if test=".[NAME = $myatom]">
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.