O'Reilly logo

Sams Teach Yourself XML in 10 Minutes by Andrew H. Watt

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Associating a Stylesheet

The xml-stylesheet processing instruction is used to associate an XML document with a CSS style sheet or with an XSLT stylesheet of the type you saw in earlier chapters.

Tip

Place the xml-stylesheet processing instruction in the prolog of the XML document, in the line immediately after the XML declaration, if you used one.

The general form of the necessary processing instruction is as follows:

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

The second part of the xml-stylesheet processing instruction consists of two pseudoattributes (these aren’t true attributes because they aren’t associated with an element)—the ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required