we am just moving to xsl's and would appreciate some help. I have a simple dcr and tpl as presentation which is having jsp tag, so we are plannig to rewrite presentation template to xsl so when I am trying to preview I am getting PT compiler error.
Please find below the perl code for that sample dcr
<%@ page pageEncoding="UTF-8" %>
<a name="top"></a><h1><iw_value name="dcr.jobs.title"/></h1>
<iw_iterate list='dcr.jobs.paragraphs' var='paragraph'>
<p><iw_value name="paragraph.text"/></p>
</iw_iterate>
I want to conver this perl code to xsl when I writing like this getting error
<%@ page pageEncoding="UTF-8" %>
<xsl:template match="/">
<a name="top"></a><h1><xsl:value-of select="/root/title"/></h1>
</xsl:template>
In the templating.cfg i have using jsp as extension.
<template name="employment.xsl" extension="jsp" ptcompiler="com.interwoven.ui.formspub.utils.XSLTPTCompiler">
<locations>
<branch vpath-regex="/" preview-dir="/">
<directory dir-regex=".*" />
</branch>
</locations>
</template>
Please let me know the way I am writing xsl is correct or let me know do I want to include the below tags also
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
Please share if anybody having xsl file using jsp tags.