If you want to get typeahead support in XML-based editors, content assist is managed by specifying the location of the relevant DTD in the relevant XML resource. If the DTD is accessible from the resource and IDE (i.e. Domino Designer), content assist provides elements and attributes hierarchically and can be used to validate the XML file. Paul Withers has provided a DTD on GitHub https://github.com/paulswithers/xpages_theme_dtd.
However, if a DTD is specified, I've found problems loading an XPage if the DTD is not accessible from the server.
Using in an NSF (Online)
The easiest option is using a publicly-accessible URL. That means the same location is accessible for Domino Designer and the XPages runtime, regardless of the location of the Domino server.
Enter the following code at the top of a Theme resource:
- You must remove the lines before building and testing the application on the server, otherwise the XPages runtime will not be able to parse the file.
Using in an NSF (Offline)
If you want to access the content assist while working offline, you'll need a local copy of the file.
- Copy the content from https://github.com/paulswithers/xpages_theme_dtd/blob/master/theme_1_0.dtd and paste into a text file.
- Save it locally on your file system, e.g. to "C:\temp\theme_1_0.dtd".
Enter the following code at the top of a Theme resource (amending the path as required):
Whether processing from a local Domino server or from a local NSF, the file will still be accessible.
- As before, you must remove the lines before building and testing the application on the server, otherwise the XPages runtime will not be able to parse the file.
Adding to Domino Designer's Snippets
There is no content with the specified labels