net.sf.saxon.option.sql

Class SQLQuery

public class SQLQuery extends ExtensionInstruction

An sql:query element in the stylesheet.

For example:

   <sql:query column="{$column}" table="{$table}" where="{$where}"
                 xsl:extension-element-prefixes="sql"/ >
 

(result with HTML-table-output)
   <sql:query column="{$column}" table="{$table}" where="{$where}"
                 row-tag="TR" column-tag="TD"
                 separatorType="tag"
                 xsl:extension-element-prefixes="sql"/ >
 

Author: claudio.thomas@unix-ag.org (based on Michael Kay's SQLInsert.java)

Field Summary
StringcolTag
name of element to hold the rows
Expressioncolumn
selected column(s) to query
Expressionconnection
booleandisable
name of element to hold the columns
StringrowTag
Expressiontable
the table(s) to query in
Expressionwhere
conditions of query (can be omitted)
Method Summary
Expressioncompile(Executable exec)
voidprepareAttributes()
voidvalidate()

Field Detail

colTag

String colTag
name of element to hold the rows

column

Expression column
selected column(s) to query

connection

Expression connection

disable

boolean disable
name of element to hold the columns

rowTag

String rowTag

table

Expression table
the table(s) to query in

where

Expression where
conditions of query (can be omitted)

Method Detail

compile

public Expression compile(Executable exec)

prepareAttributes

public void prepareAttributes()

validate

public void validate()