Posts

Showing posts with the label pascal

Using XPath to locate a node in a XML file with a HelpNDoc custom template

Image
Using XPath to locate a node in a XML file with a HelpNDoc custom template I am trying to enhance my HTML template that is used with HelpNDoc. One thing I find lacking is the fact that the meta description tag is the same for all pages. meta description The template file is a mixture of pascal and HTML. At the moment this is the data in the template for showing the description tag: <meta name="description" content="<% print(HndProjects.GetProjectSummary()); %>" /> I have created a mapping XML document which contains the needed descriptions. Example: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <HelpTopics xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Topic> <Caption>Overview</Caption> <ID>msa-overview</ID> <ContextID>0</ContextID> <Description>An introduction to Meeting Schedule Assistant.</Descr...