Fred,
There are some examples of embedded stylesheets in Michael Kay's "XSLT Programmer's Reference" (WROX Pubs). There is also a warning that all XSL processors do not support embedded stylesheets. I haven't tried it personally.
Bob Tracy
Never engage in a battle of wits if you're only half armed.