PDA

View Full Version : XML issue



welshboy
January 1st, 2007, 01:28 PM
Hi guys,

I'm using OxygenXML to help me learn XML using a book I have.

The book gives the following syntax to import a CSS stylesheet so I can display it in firefox.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<?xml:stylesheet href="personnel.css" type="text/css"?>

However, I seem to get an error :

The processing instruction target matching "[xX][mM][lL]" is not allowed.

Even though the book swears blind that this is the way it works.

Can anyone help me?

Many thanks

welshboy
January 1st, 2007, 02:01 PM
Hi folks,

I have since found the solution. It turns out that the book was using the wrong syntax,

Where it read:

<?xml:stylesheet href="personnel.css" type="text/css"?>

it should have been:

<?xml-stylesheet href="personnel.css" type="text/css"?>

NOTE: the dash rather than the colon. Hope that prevents others making the same mistake.

welshboy