[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Pulling xml attributes

Subject: Re: Pulling xml attributes
From: Luke Jones <ljones@xxxxxxxxxx>
Date: Thu, 28 Jun 2007 15:22:40 -0500
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 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


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.