>Am I close? It doesn't seem like a separate XSL or DTD file would be a good option for me, as I'm getting a stream of text back from a DLL.
Schemas and DTDs can be apart of the same Stream, if I understand you right. By XSL did you really mean a Schema? Here's a good intro to Schemas if you think you need it: