[Home] [By Thread] [By Date] [Recent Entries]
At 2018-11-06 12:58 +0000, Rahul Singh rahulsinghindia15@xxxxxxxxx wrote:
fine:I have installed RenderX XEP and written XSL in 2.0 and trying to generate PDF but getting error for current-date while same i have execute in Altova and that is working
Consider the below XSL-FO stylesheet that can make the check you need. I hope this helps. . . . . . Ken ~/y/samp $ xslt checkFor2.xsl checkFor2.xsl /dev/null This stylesheet requires at least version 2.0 of XSLT to run. Processing terminated by xsl:message at line 8
~/y/samp $ xslt2 checkFor2.xsl checkFor2.xsl /dev/null
~/y/samp $ cat checkFor2.xsl
<?xml version="1.0" encoding="iso-8859-1"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns="http://www.w3.org/1999/XSL/Format"
version="2.0"><xsl:template match="/">
<xsl:if test="number(system-property('xsl:version')) < 2.0">
<xsl:message terminate="yes">
This stylesheet requires at least version 2.0 of XSLT to run.
</xsl:message>
</xsl:if>
<root font-family="Times" font-size="20pt"> <layout-master-set>
<simple-page-master master-name="frame"
page-height="297mm" page-width="210mm"
margin-top="15mm" margin-bottom="15mm"
margin-left="15mm" margin-right="15mm">
<region-body region-name="frame-body"/>
</simple-page-master>
</layout-master-set> <page-sequence master-reference="frame">
<flow flow-name="frame-body">
<block>
XSLT Processor:
<xsl:value-of select="system-property('xsl:vendor')"/>
<xsl:text> </xsl:text>
<xsl:value-of select="system-property('xsl:vendor-url')"/>
</block>
</flow>
</page-sequence>
</root></xsl:template> </xsl:stylesheet> ~/y/samp $
|

Cart



