Hi, guys: I am a xsl-fo newbie.
This is a piece of sample code from XSLT Quickly, it does not work the way as its author said. xml document: <poem> <title>Paradise Lost</title> <verse>Him thus intent <prop>Ithuriel</prop> with his spear</verse> </poem> xsl document: <?xml version="1.0"?> <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 xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence> <fo:flow flow-name="xsl-region-body"> <xsl:apply-templates/> </fo:flow> </fo:page-sequence> </fo:root> </xsl:template> <xsl:template match="verse"> <fo:block font-size="10pt" font-family="Times"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="title"> <fo:block font-size="14pt" font-family="Times"> <xsl:apply-templates/> </fo:block> </xsl:template> <xsl:template match="prop"> <fo:inline font-style="italic"> <xsl:apply-templates/> </fo:inline> </xsl:template> </xsl:stylesheet> The result: <?xml version="1.0" encoding="UTF-8"?> <fo:root xmlns:fo="http://www.w3.org/1999/XSL/Format"> <fo:layout-master-set> <fo:simple-page-master> <fo:region-body/> </fo:simple-page-master> </fo:layout-master-set> <fo:page-sequence> <fo:flow flow-name="xsl-region-body"> Paradise Lost Him thus intent Ithuriel with his spear </fo:flow> </fo:page-sequence> </fo:root> What I want is to insert fo:block, fo:inline tags inside fo:flow. surrounding verse/title/prop. Can anyone tell what I did wrong? regards, __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]