[xep-support] different in result messages for XEPWin and XEP

From: Alexander Dyuzhev <dyuzhev@gmail.com>
Date: Thu Mar 15 2012 - 02:04:52 PST

Kevin,

Thank you.
Can you explain how to use xsl:stylesheet processing instruction to use Saxon ?

Best regards,
Alexander Dyuzhev

> ----------------------------------------------------------------------
>
> Message: 1
> Date: Tue, 13 Mar 2012 11:13:00 +0400
> From: Alexander Dyuzhev <dyuzhev@gmail.com>
> To: xep-support@renderx.com
> Subject: [xep-support] different in result messages for XEPWin and XEP
> Message-ID:
>        <CAGRvdFy3TLX9P5QWEqsrFYvT8GjXpyWHaC9JgSnpyvRxRx+jeg@mail.gmail.com>
> Content-Type: text/plain; charset=ISO-8859-1
>
> Hi!
>
> I have 3 files in folder C:\TestXSL:
> 1. testexternal.xsl with link to "external.xml":
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:variable name="ExternalXML"  select="document('C:/TestXSL/external.xml')"/>
>  <xsl:template match ="/">
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> font-family="Times New Roman">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="A4" page-height="297mm"     page-width="210mm">
> <fo:region-body />
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="A4">
> <fo:flow flow-name="xsl-region-body">
> <fo:block font-size="19pt" text-align="center" font-weight="bold">
> <xsl:text>Text from external XML: </xsl:text><xsl:value-of
> select="$ExternalXML/root/text"/>
> </fo:block>
> </fo:flow>
> </fo:page-sequence>
> </fo:root>
> </xsl:template>
> </xsl:stylesheet>
>
> 2. test.xml - simple xml - source for testing:
> <?xml version="1.0" encoding="utf-8"?>
> <root>text</root>
>
> 3. external.xml for call from testexternal.xsl:
> <?xml version="1.0" encoding="utf-8"?>
> <root>
> <text>Hello!</text>
> </root>
>
> I start XEPWin from command line with parameters
> "C:\Program Files\RenderX\XEPWin\XSLDRIVER.EXE" -xml
> "C:\TestXSL\test.xml" -xsl "C:\TestXSL\testexternal.xsl" -pdf
> "C:\TestXSL\test_xepwin.pdf"
> and XEPWin creates successfully (without warnings) output
> test_xepwin.pdf with text string "Text from external XML: Hello!"
>
> But when I start XEP with the same parameters and source xml and xsl:
> "C:\Program Files\RenderX\XEP\xep.bat" -xml "C:\TestXSL\test.xml" -xsl
> "C:\TestXSL\testexternal.xsl" -pdf "C:\TestXSL\test_xep.pdf"
> XEP outputs to console warning message
> [warning] Malformed URL [C:/TestXSL/external.xml] - base
> [file:/C:/TestXSL/testexternal.xsl]
> and creates test_xep.pdf with text "Text from external XML: " only,
> i.e. without text from external.xml.
>
> I found solution for fix that warning. I must add 'file:///' before
> path to external.xml to document() function.
>
> But my question relates to different results of XEPWin and XEP. Why
> XEPWin successfully ended but XEP created PDF with warning ?
> Is XEPWin use other XML to XSL transformer than XEP or something else ?
> How different is the result of XEPWin and XEP ? When I have ended
> development XSL-FO for XEPWin, and when I need to migrate solution to
> XEP, should I run test for full compliance for results for XEPWin and
> XEP ?
> Or XEPWin and XEP produces the same result ?
>
>
> Thank you.
>
> Best regards,
> Alexander Dyuzhev
>
>
>
>
>
>
> ------------------------------
>
> Message: 2
> Date: Tue, 13 Mar 2012 04:48:35 -0700
> From: "Kevin Brown" <kevin@renderx.com>
> To: "'RenderX Community Support List'" <xep-support@renderx.com>
> Subject: [xep-support] Re: different in result messages for XEPWin and
>        XEP
> Message-ID: <01fa01cd010f$397ea230$ac7be690$@com>
> Content-Type: text/plain;       charset="us-ascii"
>
> Because you are using a different XSL Transformer in each case. When you
> call XEP Java (from xep.bat) you have in your classpath saxon, and when you
> call XEPWin with XML and XSL, you are calling XSLTCompiledTransform.
>
> You can use XEPWin and call Saxon by using an xsl:stylesheet processing
> instruction if you wish to use Saxon in both instances.
>
> Kevin Brown
> RenderX
>
> -----Original Message-----
> From: xep-support-bounces@renderx.com
> [mailto:xep-support-bounces@renderx.com] On Behalf Of Alexander Dyuzhev
> Sent: Tuesday, March 13, 2012 12:13 AM
> To: xep-support@renderx.com
> Subject: [xep-support] different in result messages for XEPWin and XEP
>
> Hi!
>
> I have 3 files in folder C:\TestXSL:
> 1. testexternal.xsl with link to "external.xml":
> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> version="1.0" xmlns:fo="http://www.w3.org/1999/XSL/Format">
> <xsl:variable name="ExternalXML"
> select="document('C:/TestXSL/external.xml')"/>
>  <xsl:template match ="/">
> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"
> font-family="Times New Roman">
> <fo:layout-master-set>
> <fo:simple-page-master master-name="A4" page-height="297mm"
> page-width="210mm">
> <fo:region-body />
> </fo:simple-page-master>
> </fo:layout-master-set>
> <fo:page-sequence master-reference="A4"> <fo:flow
> flow-name="xsl-region-body"> <fo:block font-size="19pt" text-align="center"
> font-weight="bold"> <xsl:text>Text from external XML:
> </xsl:text><xsl:value-of select="$ExternalXML/root/text"/> </fo:block>
> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> </xsl:stylesheet>
>
> 2. test.xml - simple xml - source for testing:
> <?xml version="1.0" encoding="utf-8"?>
> <root>text</root>
>
> 3. external.xml for call from testexternal.xsl:
> <?xml version="1.0" encoding="utf-8"?>
> <root>
> <text>Hello!</text>
> </root>
>
> I start XEPWin from command line with parameters "C:\Program
> Files\RenderX\XEPWin\XSLDRIVER.EXE" -xml "C:\TestXSL\test.xml" -xsl
> "C:\TestXSL\testexternal.xsl" -pdf "C:\TestXSL\test_xepwin.pdf"
> and XEPWin creates successfully (without warnings) output test_xepwin.pdf
> with text string "Text from external XML: Hello!"
>
> But when I start XEP with the same parameters and source xml and xsl:
> "C:\Program Files\RenderX\XEP\xep.bat" -xml "C:\TestXSL\test.xml" -xsl
> "C:\TestXSL\testexternal.xsl" -pdf "C:\TestXSL\test_xep.pdf"
> XEP outputs to console warning message
> [warning] Malformed URL [C:/TestXSL/external.xml] - base
> [file:/C:/TestXSL/testexternal.xsl]
> and creates test_xep.pdf with text "Text from external XML: " only, i.e.
> without text from external.xml.
>
> I found solution for fix that warning. I must add 'file:///' before path to
> external.xml to document() function.
>
> But my question relates to different results of XEPWin and XEP. Why XEPWin
> successfully ended but XEP created PDF with warning ?
> Is XEPWin use other XML to XSL transformer than XEP or something else ?
> How different is the result of XEPWin and XEP ? When I have ended
> development XSL-FO for XEPWin, and when I need to migrate solution to XEP,
> should I run test for full compliance for results for XEPWin and XEP ?
> Or XEPWin and XEP produces the same result ?
>
>
> Thank you.
>
> Best regards,
> Alexander Dyuzhev
>
> !DSPAM:87,4f5ef38a63732141020720!
>
>
> _______________________________________________
> (*) To unsubscribe, please visit
> http://lists.renderx.com/mailman/options/xep-support
> (*) By using the Service, you expressly agree to these Terms of Service
> http://w ww.renderx.com/terms-of-service.html
>
>
>
> ------------------------------
>
> Message: 3
> Date: Tue, 13 Mar 2012 17:30:35 +0000
> From: Kirch Fritz <Friedrich.Kirch@it2media.de>
> To: "kevin@renderx.com" <kevin@renderx.com>, RenderX Community Support
>        List    <xep-support@renderx.com>
> Subject: [xep-support] [SPAM] AW:  Re: different in result messages
>        for XEPWin and XEP
> Message-ID:
>        <C5E8452D51566246BBFAD52197F976EE0172E9A3@IT2m1234.it2mbizz.de>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am very interested in this xsl:stylesheet processing instruction.
> Can you please show this PI?
>
> Friedrich Kirch
> www.it2media.de
>

!DSPAM:87,4f61bf4463739276773851!

_______________________________________________
(*) To unsubscribe, please visit http://lists.renderx.com/mailman/options/xep-support
(*) By using the Service, you expressly agree to these Terms of Service http://w
ww.renderx.com/terms-of-service.html
Received on Sun Apr 29 23:49:27 2012

This archive was generated by hypermail 2.1.8 : Sun Apr 29 2012 - 23:49:28 PDT