It looks like if the data files fetched from data source already contain
<?xml version="1.0" encoding="ISO-8859-1"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
...
then the correct way to make the data displayable on a browser is to create a .xsl
file, and then make the .xml
file contain one more line (the second line below):
<?xml version="1.0" encoding="ISO-8859-1"?>
<?xml-stylesheet type="text/xsl" href="format.xsl"?>
<catalog>
<cd>
<title>Empire Burlesque</title>
...
but, how would you usually add this line to an .xml file? If there are 200 data files, then we need to modify all 200 files to contain that line? And if we change format.xsl
to supergoodlooking.xsl
, then we have to change all the .xml files to reflect that?
Is there also a way to somehow link an XML file with a XSL file, perhaps on the URL or using a 3rd file?