Introduction
In this short how to, I will demonstrate how to connect an external stylesheet to your XML. First I will show what the XML code looks like,
this will call in the stylesheet. Next I will show you a sample of the CSS file.
Using the code
First we we need to create the XML file, below is a sample:
="1.0? encoding="
<car>
<vauxhall>
<model>corsa
<engine>1.0</engine>
<colour>red</colour>
</model></vauxhall>
</car>
Next, we will create the CSS file, below is a sample, the file is called mycssfile.css.
@charset "utf-8?;
car,vauxhall
{
font-family:"arial, helevtica;
}
model
{
display:block;
font-size:18px;
color:#C69;
}
engine,colour
{
display:block;
}
Notice that the following line of code in your XML file is used to call the stylesheet.
The XML was created and validated using Liquid XML Editor.
This member has not yet provided a Biography. Assume it's interesting and varied, and probably something to do with programming.