The Think Tank devoted to your internet needs.
We provide internet solutions that will save you both time and money.
Home  
    
Services  
    
AThinkStats  
    
Resources  
    
Partners  
    
Contact Us  
    
Sitemap  
    

Valid XHTML 1.1!

Valid CSS!

XML is Extensible Markup Language.

min header
<?xml version="1.0"?>
english encoding
<?xml version="1.0" encoding="ISO-8859-1"?>
windows encoding
<?xml version="1.0" encoding="windows-1252"?>
UTF-8 and UTF-16 unicode encoding
<?xml version="1.0" encoding="UTF-8"?>
<?xml version="1.0" encoding="UTF-16"?>
Both are valid, depending on your need. If your data contains single quotes, then wrap with double. And vice versa
<bluewidget name="yellow 'Vespa' wong" >
</bluewidget>
<bluewidget name="yellow "Vespa" wong" >
</bluewidget>
Empty elements in xslt and xml. A funny thing happened on the way to implementing Google Adsense. In adding another block of html in xsl, a rogue div tag was discovered. The div tag was being conditionally filled, and on the pages that it was filled everything was fine. On the pages without filling, the div tag collapsed to <div/> and everything below collapsed under it. In order to get around this, I just added some comment tages in the div tags so that it would collapse. Another fix would be to test for the condition before outputting the div tag. Or, one could use position()=1 within the xslt loops (ya, we know, not really loops)
<div> <xsl:comment>some random text to keep the div in two tags</xsl:comment> </div>
As in the above example, if you are implementing Google's AdSense, you will need to add that java script to your page. In their stock example, there is nothing in the second java script element. My xslt processsor collapsed that, and the scripted failed on I.E. 6, but worked fine in firefox. Use the above mentioned hack to keep the <script></script> alive
<script type="text/javascript" src="http://pagead2.googlesyndication.com/pagead/show_ads.js"> <xsl:comment>xslt plus ie plus jscript equals bugs</xsl:comment> </script>

w3c XML Apache XML