325 Content meta = HtmlTree.META("keywords", metakeywords[i]); |
325 Content meta = HtmlTree.META("keywords", metakeywords[i]); |
326 head.addContent(meta); |
326 head.addContent(meta); |
327 } |
327 } |
328 } |
328 } |
329 head.addContent(getStyleSheetProperties()); |
329 head.addContent(getStyleSheetProperties()); |
|
330 head.addContent(getScriptProperties()); |
330 Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(), |
331 Content htmlTree = HtmlTree.HTML(configuration.getLocale().getLanguage(), |
331 head, body); |
332 head, body); |
332 Content htmlDocument = new HtmlDocument(htmlDocType, |
333 Content htmlDocument = new HtmlDocument(htmlDocType, |
333 htmlComment, htmlTree); |
334 htmlComment, htmlTree); |
334 write(htmlDocument); |
335 write(htmlDocument); |
1683 } |
1684 } |
1684 HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", |
1685 HtmlTree link = HtmlTree.LINK("stylesheet", "text/css", |
1685 pathToRoot.resolve(stylesheet).getPath(), |
1686 pathToRoot.resolve(stylesheet).getPath(), |
1686 "Style"); |
1687 "Style"); |
1687 return link; |
1688 return link; |
|
1689 } |
|
1690 |
|
1691 /** |
|
1692 * Returns a link to the JavaScript file. |
|
1693 * |
|
1694 * @return an HtmlTree for the Script tag which provides the JavaScript location |
|
1695 */ |
|
1696 public HtmlTree getScriptProperties() { |
|
1697 HtmlTree script = HtmlTree.SCRIPT("text/javascript", |
|
1698 pathToRoot.resolve(DocPaths.JAVASCRIPT).getPath()); |
|
1699 return script; |
1688 } |
1700 } |
1689 |
1701 |
1690 /** |
1702 /** |
1691 * According to |
1703 * According to |
1692 * <cite>The Java™ Language Specification</cite>, |
1704 * <cite>The Java™ Language Specification</cite>, |