I am not sure I understand what you have in mind exactly but XSLT processing is not based on DTDs. You write match patterns selecting nodes by their type (e.g. element node or attribute node) and by their node name. The XSLT/XPath data model does not include any DTD related nodes.
Writing a single stylesheet to process different types of XML documents would be possible by including templates matching the different elements, that way the XSLT processor would then simply choose a different template based on matching against the different elements encountered in the input XML.
__________________
Martin Honnen
Microsoft MVP (XML, Data Platform Development) 2005/04 - 2013/03
My blog
|