I am trying to create html from command line via iwgen CLT. DCT is xml type and Presentation template is XSL. The generate button on the DCR is able to generate correct HTML using the same xsl however when I try to generate via command line using iwgen , the html file being generated contains the full dump of xsl .
There are no issues with the xsl and the command line also doesn't display any error. Is there any configuration that needs to be done, it seems iwgen is not picking up XSLT compiler. In templating ptcompiler="com.interwoven.ui.formspub.utils.XSLTPTCompiler" is used.
Env:
TS-8.1
Windows server 2012 R2
Steps to Reproduce:
1. create a dct with a baisc id text field.
2. Add an entry to templating.cfg
3. Create xsl to output ID (Code below)
4. Generate using generate button on dcr. HTML generates fine.
5. From command prompt use the below command to generate
iwgen.exe -t Y:/default/main/<branch>/WORKAREA/<Workarea>/templatedata/<category>/<type>/presentation/article.xsl -r Y:/default/main/<branch>/WORKAREA/<Workarea>/templatedata/<category>/<type>/data/<dcrname> Y:/default/main/<branch>/WORKAREA/<Workarea>/html/articletest.html
Templating entry
<data-type name="Articles" dcr-type="xml">
<presentation>
<template extension="html" name="article.xsl" ptcompiler="com.interwoven.ui.formspub.utils.XSLTPTCompiler">
<locations>
<branch preview-dir="/" vpath-regex=".*">
<directory dir-regex=".*"/>
</branch>
</locations>
</template>
</presentation>
</data-type>
XSL
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"
exclude-result-prefixes="xalan"
>
<xsl
utput method="html"/>
<xsl:template match="/">
<html>
<head>
</head>
<body>
<p><xsl:value-of select="/root/Id" /></p>
</body>
</html>
</xsl:template>
</xsl:stylesheet>