You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@xalan.apache.org by Krueger Martin <ma...@siemens.com> on 2002/07/31 08:45:59 UTC

error in SQL library extension example

Hi all!

Since I don't know which list is the correct one for this posting, I just
send it to both (my apologies if this is a grave faux-pas).

I just started with Xalan and had a look at the SQL library extension, where
I discovered a bug in the "6-sqllib-instantdb.xsl" stylesheet, the line:

<xsl:apply-templates select="$table/sql/row-set/row"/>

should be

<xsl:apply-templates select="$table/sql/row-set"/>

to get all the rows of the database table into the HTML table!

yours

	Martin

__________________________________________________
SIEMENS                           		Siemens AG Österreich 
                                             		Program and System
Engineering

                                               		Gudrunstraße 11
                                               		A - 1101 Vienna,
Austria
                                        		phone:    +43  5
1707 47052
Dipl.Ing.		             		fax:          +43  5 1707
56992
Dr. Martin Krüger			martin.dr.krueger@siemens.com




Re: error in SQL library extension example

Posted by John Gentilin <ge...@eyecatching.com>.
Martin,

Sorry for the confusion, the 6-sqllib-instantdb.xsl examples are "left
overs" from
the original version of the extension. After the 2.0 rewrite (moving to
the DTM
model) the DTD/Structure of the SQL data changed a bit to provide some
simple
triggers that were needed to support streaming mode. I believe the new
examples
in the \samples\extensions\sql\* directories provide an accurate, more
robust example
for the SQL extensions.

Hope that helps
John G

Krueger Martin wrote:

>
>
> Hi all!
>
> Since I don't know which list is the correct one for this posting, I
> just send it to both (my apologies if this is a grave faux-pas).
>
> I just started with Xalan and had a look at the SQL library extension,
> where I discovered a bug in the "6-sqllib-instantdb.xsl" stylesheet,
> the line:
>
> <xsl:apply-templates select="$table/sql/row-set/row"/>
>
> should be
>
> <xsl:apply-templates select="$table/sql/row-set"/>
>
> to get all the rows of the database table into the HTML table!
>
> yours
>
>         Martin
>
> __________________________________________________
> SIEMENS                                         Siemens AG Österreich
>                                                         Program and
> System Engineering
>
>                                                         Gudrunstraße
> 11
>                                                         A - 1101
> Vienna, Austria
>                                                         phone:    +43
> 5 1707 47052
> Dipl.Ing.                                       fax:          +43  5
> 1707 56992
> Dr. Martin Krüger                       martin.dr.krueger@siemens.com
>

--
--------------------------------------
John Gentilin
Eye Catching Solutions Inc.
18314 Carlwyn Drive
Castro Valley CA 94546

    Contact Info
gentijo@eyecatching.com
Ca Office 1-510-881-4821
NJ Office 1-732-422-4917


Re: error in SQL library extension example

Posted by John Gentilin <ge...@eyecatching.com>.
Martin,

Sorry for the confusion, the 6-sqllib-instantdb.xsl examples are "left
overs" from
the original version of the extension. After the 2.0 rewrite (moving to
the DTM
model) the DTD/Structure of the SQL data changed a bit to provide some
simple
triggers that were needed to support streaming mode. I believe the new
examples
in the \samples\extensions\sql\* directories provide an accurate, more
robust example
for the SQL extensions.

Hope that helps
John G

Krueger Martin wrote:

>
>
> Hi all!
>
> Since I don't know which list is the correct one for this posting, I
> just send it to both (my apologies if this is a grave faux-pas).
>
> I just started with Xalan and had a look at the SQL library extension,
> where I discovered a bug in the "6-sqllib-instantdb.xsl" stylesheet,
> the line:
>
> <xsl:apply-templates select="$table/sql/row-set/row"/>
>
> should be
>
> <xsl:apply-templates select="$table/sql/row-set"/>
>
> to get all the rows of the database table into the HTML table!
>
> yours
>
>         Martin
>
> __________________________________________________
> SIEMENS                                         Siemens AG Österreich
>                                                         Program and
> System Engineering
>
>                                                         Gudrunstraße
> 11
>                                                         A - 1101
> Vienna, Austria
>                                                         phone:    +43
> 5 1707 47052
> Dipl.Ing.                                       fax:          +43  5
> 1707 56992
> Dr. Martin Krüger                       martin.dr.krueger@siemens.com
>

--
--------------------------------------
John Gentilin
Eye Catching Solutions Inc.
18314 Carlwyn Drive
Castro Valley CA 94546

    Contact Info
gentijo@eyecatching.com
Ca Office 1-510-881-4821
NJ Office 1-732-422-4917