Re: [xsl] Pulling xml attributes

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 select="./tbody/row">
      <xsl:for-each select="./entry">
        <fo:block line-height="16pt" text-decoration="underline"
font-size = "10pt">
         <xsl:value-of select="." />

...and it works like a charm!

Thanks again,

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