请注意,在查询10中多获得了一行,这是因为SQL的group by函数还为null值生成一个组,我们的示例表中有一名员工没有办公室信息。
Note that we get an extra row from Query 10, because SQL's group by also produces a group for NULL values, and there is one employee in our sample table with no office information.
稍后,样式表在函数中生成调用,并再次将值传递给脚本(通过XSLT position函数),如清单7中以蓝色突出显示的行所示。
Later the style sheet generates calls into the function and, again, passes a value to the script (through the XSLT position function), as shown in the lines of Listing 7 highlighted in blue.
在updatecatalog函数中,获取表单字段值,并创建一条sql语句,以便将一行添加到数据库表Catalog中。
In the updateCatalog function, retrieve the form field values and create an SQL statement to add a row to database table Catalog.
应用推荐