我正在尝试通过 uml 生成 html 文档,并且一切正常。我的问题是我会将所有报告附在:
<html>
<body>
//report
</body>
</html>
我怎样才能做到这一点?
这是我要附上的 acceleo 报告模板:
[comment encoding = UTF-8 /]
[module useCase('http://www.eclipse.org/uml2/3.0.0/UML')]
[template public generateUseCase(uc : UseCase)]
[comment @main/]
[file (('useCases.html'), true)]
<h1>UseCase: [uc.name/]</h1>
[if (uc.ownedBehavior->notEmpty())]
<h5>Part of Activity: [uc.ownedBehavior.name/]</h5>
[/if]
<h3>Extension Points:</h3>
[if (uc.extensionPoint->isEmpty())]
<p>No Extension Points</p>
[/if]
<ul>
[for (e : ExtensionPoint | uc.extensionPoint)]
<li>[e.name/]</li>
[/for]
</ul>
[/file]
[/template]