[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Pulling xml attributes
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|