TS741 Win Ser 8
While previewing a file, I am grtting following error.
In which log file, are these errors logged ?
It depends. If your PT is XSL, then it's probably in server.log and/or content_center.log. If your PT is TPL, then you *may* have something in iwutild_cmdout.log but it's more likely you'll have to run it through iwpt_compile.ipl manually to find out what the problem is.
\Interwoven\TeamSite\bin>iwpt_compile.ipl -pt Y:\default\main\Intranet-Portal \retail\WORKAREA\common\templatedata\Portal-Content\Price\presentation\evergreen-preview.tplUnrecognized escape \d passed through at (eval 24) line 65.Unrecognized escape \m passed through at (eval 24) line 65.Unrecognized escape \I passed through at (eval 24) line 65.Unrecognized escape \C passed through at (eval 24) line 65.Unrecognized escape \W passed through at (eval 24) line 65.Unrecognized escape \C passed through at (eval 24) line 65.Unrecognized escape \I passed through at (eval 24) line 65.Unrecognized escape \P passed through at (eval 24) line 65.Unrecognized escape \R passed through at (eval 24) line 65.
<ERROR>Could not process template: Y:\default\main\Intranet-Portal\Common\WORKAREA\common\includes\no-context.inc</ERROR>
Try debugging like this: iwpt_compile ... -ocode ****.ipl; ****.ipl
\Interwoven\TeamSite\bin>
\Interwoven\TeamSite\bin>iwpt_compile.ipl -ocode Y:\default\main\Intranet-Portal \retail\WORKAREA\common\templatedata\Portal-Content\Price\presentation\evergreen-preview.tpl
<ERROR>No presentation template file</ERROR>
evergreen-preview.tpl is calling no-context.inc, which in turn is calling servlet. Business logic is implemented in some java bean and JSP is rendered. this is whole flow. It works on TS672. It throws error on TS741.
Please let me know, how do I check error in no-context.inc. It seems, this file is not processed.
Instead of:
iwpt_compile.ipl -pt Y:\default\main\Intranet–Portal\retail\WORKAREA\common\templatedata\Portal-Content\Price\presentation\evergreen-preview.tpl
Try this:
iwpt_compile.ipl -pt Y:/default/main/Intranet–Portal/retail/WORKAREA/common/templatedata/Portal-Content/Price/presentation/evergreen-preview.tpl
Or:
iwpt_compile.ipl -pt "Y:/default/main/Intranet–Portal/retail/WORKAREA/common/templatedata/Portal-Content/Price/presentation/evergreen-preview.tpl"
I tried it but Its the same error. evergreen-preview.tpl has just two lines, which calls another file.
So why error at line 65 is coming as below ?
Unrecognized escape \d passed through at (eval 24) line 65.Unrecognized escape \m passed through at (eval 24) line 65.Unrecognized escape \I passed through at (eval 24) line 65.Unrecognized escape \C passed through at (eval 24) line 65.Unrecognized escape \W passed through at (eval 24) line 65.Unrecognized escape \C passed through at (eval 24) line 65.Unrecognized escape \I passed through at (eval 24) line 65.Unrecognized escape \P passed through at (eval 24) line 65.Unrecognized escape \R passed through at (eval 24) line 65.
Thanks.
ebvergreen-preview.tpl is as follows
<iw_pt name='preview' encoding="UTF-8" /><iw_include pt='Y:\default\main\Intranet-Portal\retail\WORKAREA\common\includes\no-context.inc' mode='cwd'/>
I have done following to debug from bebinning
1) Put evergreen-preview.xsl, which is used to get data from DCR , in presentation folder and Configured this XSL in templating.cfg. Path of this evergreen-preview.xsl is set in no-context.inc. "no-context.inc" is called in evergreen-preview.tpl.
2) When I am trying to preview using evergreen-preview.xsl, I am getting some javascript error
3) Downloaded evergreen-preview.xsl and test_dcr on local machine in xsl folder and added this xsl href in DCR xml. It stops processing at some point, where there is no error (atleast I dont see).
End tag 'xsl:if' does not match the start tag 'xsl:for-each'. Error processing resource 'file:///C:/Users/rutu/Desktop/xs... </xsl:if>
I am puttng fragment of XSLT here , where error is thrown.
<?xml version="1.0" ?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > <xslutput omit-xml-declaration="yes" method="html" /> <xslutput omit-xml-declaration="yes" method="html" /> - <xsl:template match="/">- <div class="policySection">- <h2> <xsl:value-of select="RF/documentInformation/title" /> - <a href="#" class="likebtn" aria-disabled="false">- <xsl:attribute name="title"> Like ' <xsl:value-of select="RF/documentInformation/title" /> ' </xsl:attribute>- <xsl:attribute name="onClick"> javascript:setRecommanded(' <xsl:value-of select="RF/documentInformation/id" /> ') </xsl:attribute> </a> </h2>- <div> <xsl:value-of select="RF/body/r_f" /> </div> <br></br> - <xsl:variable name="columns"> <xsl:value-of select="RF/body/columns" /> </xsl:variable>- <xsl:if test="$columns > 0">- <div class="policyContent">- <table border="1">- <thead>- <tr>- <xsl:for-each select="RF/body/table/columnHeader/*">- <xsl:variable name="columnVal"> <xsl:value-of select="." /> </xsl:variable><!-- <xsl:if test="position() <= $columns"> Initially I was getting error here. So I changed < to <:--><xsl:if test="position() <= $columns">- <th> <xsl:value-of select="." /> </th> </xsl:if> (This is where I am getting error. This end xsl:if is matching start xsl:if. So whats problem ?) </xsl:for-each> </tr> </thead>- <tbody> ...........................
following is DCR from where content is to be extracted
<?xml version="1.0" ?> <?xml-stylesheet type="text/xsl" href="../xsl/evergreen-preview.xsl"?><RF> <documentInformation> <id></id> <title>dfdsf</title> <content_type>Fees</content_type> <locale>_en_ca</locale> <dcr_file_name>dgffg</dcr_file_name> <generated_file_name>FEES_dgffg_en_ca</generated_file_name> </documentInformation> <body> <title></title>.........
Thanks
First, I'd recommend that in your ebvergreen-preview.tpl you change the '\'s to '/'s for the path to no-context.inc
Second, in no-context.inc - is it possible that the error is actually coming from the xsl:if above the xsl:for-each statement? You don't show the ending to that xsl:if in the excerpt you posted.
I'd suggest [re-]building up the XSLT piece by piece to see if you can identify the point at which the error occurs.