[xep-support] Processing instructions

Jirka Kosek jirka at kosek.cz
Wed Nov 19 02:29:29 PST 2008


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 at 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
------------------------------------------------------------------

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 250 bytes
Desc: OpenPGP digital signature
URL: <http://lists.renderx.com/pipermail/xep-support/attachments/20081119/996be5cc/attachment.bin>


More information about the Xep-support mailing list