- From: christian brugeron <christian@barzoi.fr>
- Date: Mon, 1 Dec 2003 10:26:04 +0100
- To: <www-xsl-fo@w3.org>
Just create an empty template for note <xsl:template match = "note"/> it will capture those nodes,and nothing will be output cb > -----Message d'origine----- > De : www-xsl-fo-request@w3.org [mailto:www-xsl-fo-request@w3.org] De la > part de Girish Kanmas > Envoyé : lundi 1 décembre 2003 10:20 > À : www-xsl-fo@w3.org > Objet : tag display problem > > > Hi, > > Please have a look at the below XML and XSL files. > > When I am generating pdf, I am getting <note> tag's value/text along with > other tags value/text. > > How to avoid that. I do not want to display the information embedded > between > the tag <note>. > > "F1" please... > > =================XML FILE================== > <chapter> > <header text="Header Level One"> > <paragraph>This is the first Paragraph. > <code>This is the section where code text is displayed > for P1</code> > <note>This is the section where note text is displayed > for P1</note> > </paragraph> > > <paragraph>This is the Second Paragraph</paragraph> > > <paragraph>This is the Third Paragraph. > <code>This is the section where code text is displayed > for P3</code> > </paragraph> > </header> > </chapter> > > ==================XSL FILE================== > <xsl:template match="chapter"> > <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> > <fo:layout-master-set> > .... > .... > </fo:layout-master-set> > > <fo:page-sequence master-reference="main"> > <fo:flow flow-name="xsl-region-body"> > <xsl:apply-templates/> > </fo:flow> > </fo:page-sequence> > </fo:root> > </xsl:template> > > <xsl:template match="header"> > <fo:block> > <xsl:value-of select="@text"/> > <xsl:apply-templates/> > </fo:block> > </xsl:template> > > <xsl:template match="paragraph"> > <fo:block> > <xsl:apply-templates/> > </fo:block> > </xsl:template> > > <xsl:template match="code"> > <fo:block> > <xsl:apply-templates/> > </fo:block> > </xsl:template> > </xsl:stylesheet> > ========================================== > > Girish Kanmas > TI Extn: 1387 > Mobile: +91 (80) 56728348 >
Received on Monday, 1 December 2003 04:26:28 UTC