Asking the Right Questions
The first question you should ask yourself is the equivalent of “Is it plugged in?” In our case, you should ask the following basic questions:
Is the source document well formed?
Can the document be validated against a DTD or XML schema?
Is the style sheet loading properly?
The first question sounds like a no-brainer. If you’ve authored the document by hand, surely the last step is to run the document through a parser to ensure it is well formed. However, documents are often created or modified at runtime by an application. If you are relying on an application to generate XML data, and you’ve successfully tested your style sheet against a sample document, this is the first place to look for problems. For a dynamically ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access