RE: [xsl] short question regarding xsl:attribute

Subject: RE: [xsl] short question regarding xsl:attribute
From: "Lars Huttar" <lars_huttar@xxxxxxx>
Date: Sun, 16 Mar 2003 23:03:49 -0600
> On Sun, 16 Mar 2003, David Carlisle wrote:
>
> >   an example involving xsl:attribute in kay's book:
> >
> >   <table>
> >    <xsl:attribute border="2"/>
> >
> >
> > I hope that isn't the example as xsl:attribute doesn't have a border
> > attribute.
> >
> > Assuming the example is
> > <xsl:attribute name="border">2</xsl:attribute>
> > then yes it's the same as using a literal result element attribute
> > in this case.
>
> i writes 'em the way i sees 'em -- kay, p. 167.  although, yes, i
> should have spotted the error right away.    but your response
> still clarifies the situation, thanks.
>
> rday

This is a known erratum.  See http://www.wrox.com/dynamic/books/errata.aspx?isbn=1861005067, where
it says for p. 167:

  The second line in the first block of example code on this page is incorrect.
  It should read:
     <xsl:attribute name="border">2</xsl:attribute>

Lars


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread