
This is the Title of the Book, eMatter Edition
Copyright © 2007 O’Reilly & Associates, Inc. All rights reserved.
870
|
Chapter 15: XML
Discussion
The ability to call custom code from inside of an XSLT stylesheet is a very powerful
one, but one that should be used cautiously. Adding code like this into stylesheets
usually renders them less useful in other environments. If the stylesheet never has to
be used to transform XML in another parser, this can be a good way to offload work
that is either difficult or impossible to accomplish in regular XSLT syntax.
The sample data used in the Solution is presented here:
<?xml version="1.0" encoding="utf-8"?>
<Publications>
<Book name="Subclassing and Hooking with Visual Basic">
<Chapter>Introduction</Chapter>
<Chapter>Windows System-Specific Information</Chapter>
<Chapter>The Basics of Subclassing and Hooks</Chapter>
<Chapter>Subclassing and Superclassing</Chapter>
<Chapter>Subclassing the Windows Common Dialog Boxes</Chapter>
<Chapter>ActiveX Controls and Subclassing</Chapter>
<Chapter>Superclassing</Chapter>
<Chapter>Debugging Techniques for Subclassing</Chapter>
<Chapter>WH_CALLWNDPROC</Chapter>
<Chapter>WH_CALLWNDPROCRET</Chapter>
<Chapter>WH_GETMESSAGE</Chapter>
<Chapter>WH_KEYBOARD and WH_KEYBOARD_LL</Chapter>
<Chapter>WH_MOUSE and WH_MOUSE_LL</Chapter>
<Chapter>WH_FOREGROUNDIDLE</Chapter>
<Chapter>WH_MSGFILTER</Chapter>
<Chapter>WH_SYSMSGFILTER</Chapter> ...