O'Reilly logo

Special Edition Using XSLT by Michael Floyd

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

Checking the Style Sheet

The last question in the “is it plugged in” test determines whether the style sheet is loading properly. Three items might prevent the style sheet from loading:

  • Improper <?xml-stylesheet> declaration in the source document

  • The style sheet is not well formed

  • The style sheet does not conform to the style-sheet schema

The first problem is easy to correct. The <?xml-stylesheet> declaration takes the following form:

<?xml-stylesheet type=”text/xsl” href=”myXMLDoc.xsl”?> 

The most common problem is that the path to the .xsl file can’t be resolved. This typically happens when relative paths are used, when the source document is moved, or when the style sheet is moved.

Note

In Web server development, it’s common to have several ...

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