[xep-support] Processing instructions

Michael Sulyaev msulyaev at renderx.com
Wed Nov 19 02:44:42 PST 2008


Mark Cilia Vincenti wrote:
> But if I want to pass on processing instructions, such as this: 
> <?xep-pdf-initial-zoom 100%?>

Hello Mark,

This would work if you add it (literally) to an XSL FO input,

> I have no idea how to get about doing this. I've tried to place this in 
> multiple places within the hammer.xsl file, to no avail. Any ideas please?

and in case of XML+XSL you need to create the processing instruction 
properly in XSL:

msulyaev at lebuntu:~/XEP/examples/hammer$ diff -ubBr hammer.xsl 
hammer.z100.xsl
--- hammer.xsl	2008-10-14 19:12:55.000000000 +0400
+++ hammer.z100.xsl	2008-11-19 13:35:39.000000000 +0300
@@ -63,6 +63,7 @@

  <xsl:template match="manual">
    <fo:root>
+  <xsl:processing-instruction 
name="xep-pdf-initial-zoom">100%</xsl:processing-instruction>
      <fo:layout-master-set>

        <!-- First page: used for the title -->

, and this will produce the expected result in PDF.


Regards,
Michael Sulyaev
RenderX
-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo at renderx.com from the address
you are subscribed from.
(*) By using the Service, you expressly agree to these Terms of Service http://www.renderx.com/terms-of-service.html



More information about the Xep-support mailing list