Home Forums General XMetaL Discussion Documenting a DTD / W3C Schema for Users of XMetaL Author Reply To: Documenting a DTD / W3C Schema for Users of XMetaL Author

dcramer

Reply to: Documenting a DTD / W3C Schema for Users of XMetaL Author

If your DTD's documentation is online and the page names match the element names you can also write a macro to open a browser to the page:

[code]var nd = Selection.ContainerNode;
// For DITA Use: http://docs.oasis-open.org/dita/v1.1/OS/langspec/langref/
openUrl(“http://docbook.org/tdg/en/html/” + nd.nodeName + “.html”);
]]>
[/code]

Then in On_Context_Menu add:

[code]  Application.AppendMacro(“Entry for current element in &DocBook, The Definitive Guide…”,”DBTDG”);[/code]

David

Reply

Products
Downloads
Support