Home › Forums › General XMetaL Discussion › Loading a document › Reply To: Loading a document
Reply to: Loading a document
May 16, 2009 at 12:30 pmHere are what appear to me to be the limitations of that approach (let me know if there's a way around them):
1. When I open a partial document with one of those PIs, I don't get prompted for a DTD, but it doesn't load any of my customizations associated with the document either (no css, no ctm, no macro file).
2. The validate command is disabled after opening the document.
3. Even if it did open with my customization and with the validation command enabled, there would be the problem that the DTD doesn't include any entities declared in the DOCTYPE of the parent document (i.e. ]>)
The way other editors handle this is to allow you to include a comment or PI that points to the parent document. The editor sees this and opens the document fragment as if it includes the parent document's DOCTYPE statement.
Thanks