xsl-list
[Top] [All Lists]

RE: Generating variable DOCTYPE

2003-01-16 08:08:09
If I write an extension function that returns the DOCTYPE as 
a String, will this work ? Or will this still be a text node 
with a bunch of characters ? I have experience with writing 
small extension functions, but I have no idea how I can 
return an DOCTYPE.

The DOCTYPE is not represented in the result tree, it is only
represented in the serialized output. So there is no way you can add it
except at serialization time.

Michael Kay
Software AG
home: Michael(_dot_)H(_dot_)Kay(_at_)ntlworld(_dot_)com
work: Michael(_dot_)Kay(_at_)softwareag(_dot_)com 


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list