Subject: Re: [xsl] Pulling xml attributes From: Luke Jones <ljones@xxxxxxxxxx> Date: Thu, 28 Jun 2007 15:22:40 -0500 |
Oy! Thanks so much -- that was exactly what I was over looking. I've switched the xsl to: <xsl:template match="table"> <xsl:for-each select = "./tgroup"> <fo:table table-layout="fixed" width="100%"> <xsl:for-each select="./colspec"> <fo:table-column column-width="{@colwidth}in"/> </xsl:for-each> <fo:table-body> <xsl:for-each select="./tbody/row"> <fo:table-row> <xsl:for-each select="./entry"> <fo:table-cell> <fo:block line-height="16pt" text-decoration="underline" font-size = "10pt"> <xsl:value-of select="." /> </fo:block> </fo:table-cell> </xsl:for-each> </fo:table-row> </xsl:for-each> </fo:table-body> </fo:table> </xsl:for-each> </xsl:template> ...and it works like a charm! Thanks again, Luke On Thu, 2007-06-28 at 21:24 +0200, Manfred Staudinger wrote: > Hi Luke, > > > <xsl:for-each select = "tbody/row"> > You are selecting row here but in the xml you showed, > row has no child element named "colspec" so > > > <xsl:for-each select = "colspec"> > does not select anything and therefor you will be missing > the table-column element in your output. > > Hope this helps, Manfred
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Pulling xml attributes, Manfred Staudinger | Thread | [xsl] [ANN] Extreme Markup Language, B Tommie Usdin |
Re: [xsl] Pulling xml attributes, Manfred Staudinger | Date | [xsl] XSL Project Shut Down, Karl Stubsjoen |
Month |