- From: good_guddu <atlisingh@gmail.com>
- Date: Wed, 2 Jul 2008 08:41:05 -0700 (PDT)
- To: www-xsl-fo@w3.org
i need the ability to view object on pdf when viewed from pc,but hide it when
printed.
code below
name.xml
<name>John</name>
nametofo.xsl
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:fo="http://www.w3.org/1999/XSL/Format">
<xsl:output method="xml" indent="yes"/>
<xsl:template match="/">
<fo:root>
<fo:layout-master-set>
<fo:simple-page-master master-name="A4-portrait"
page-height="29.7cm" page-width="21.0cm" margin="2cm">
<fo:region-body/>
</fo:simple-page-master>
</fo:layout-master-set>
<fo:page-sequence master-reference="A4-portrait" >
<fo:flow flow-name="xsl-region-body">
<fo:block >
Hello, <xsl:value-of select="name"/>!
</fo:block>
</fo:flow>
</fo:page-sequence>
</fo:root>
</xsl:template>
</xsl:stylesheet>
Run command
fop -xml name.xml -xsl name2fo.xsl -pdf name.pdf
can it be done?
Tried visibility="hidden" does not work.
--
View this message in context: http://www.nabble.com/supress-object-print-tp18240529p18240529.html
Sent from the w3.org - www-xsl-fo mailing list archive at Nabble.com.
Received on Wednesday, 2 July 2008 20:07:24 UTC