Troubleshooting

Minimizing Bugs in Style Sheets

How can I minimize bugs in my style sheets?

In general, you can minimize bugs in your style sheet by observing the following:

  • Prior proper planning

  • Building incrementally

  • Developing incrementally

As the saying goes, prior proper planning prevents poor performance. In this case, planning comes at the design stage. If you design your style sheets in the modular way described in this chapter, you will find the job of bug hunting much easier. One reason is that style sheets often produce a visual result, making it easy to see at a glance which element type is not being handled correctly. By creating templates based on your element types, locating the offending code usually is an easy task. In addition, ...

Get Special Edition Using XSLT now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.