Re: [xep-support] Processing instructions

From: Jirka Kosek <jirka@kosek.cz>
Date: Wed Nov 19 2008 - 02:29:29 PST

Mark Cilia Vincenti wrote:
> Hi,
>
> I still can't get to grips with the processing instructions.
>
> If I open a command prompt and browse to the XEP folder and type:
>
> xep -xml examples\hammer\hammer.xml -xsl examples\hammer\hammer.xsl -pdf
> examples\hammer\hammer.pdf
>
> This will create a hammer.pdf
> But if I want to pass on processing instructions, such as this:
>
> <?xep-pdf-initial-zoom 100%?>
>
> 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?

In XSLT you have to use

<xsl:processing-instruction
name="xep-pdf-initial-zoom">100%</xsl:processing-instruction>

to get desired PI in output.

                        Jirka

-- 
------------------------------------------------------------------
  Jirka Kosek      e-mail: jirka@kosek.cz      http://xmlguru.cz
------------------------------------------------------------------
       Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
------------------------------------------------------------------
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 member
------------------------------------------------------------------

-------------------
(*) To unsubscribe, send a message with words 'unsubscribe xep-support'
in the body of the message to majordomo@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

Received on Wed Nov 19 02:47:05 2008

This archive was generated by hypermail 2.1.8 : Wed Nov 19 2008 - 02:47:06 PST