Oracle9i Supplied PL/SQL Packages and Types Reference Release 1 (9.0.1) Part Number A89852-02 |
|
DBMS_METADATA , 8 of 11
SET_TRANSFORM_PARAM
specifies parameters to the XSL-T stylesheet identified by transform_handle.
Use it to modify or customize the output of the transform.
PROCEDURE set_transform_param (transform_handle IN NUMBER, name IN VARCHAR2, value IN VARCHAR2); PROCEDURE set_transform_param (transform_handle IN NUMBER, name IN VARCHAR2,value IN BOOLEAN DEFAULT TRUE);
Parameters | Description |
---|---|
|
Either (1) the handle returned from |
|
The name of the parameter. Table 28-12 lists the transform parameters defined for the DDL transform, specifying the |
|
The value of the transform. |
INVALID_ARGVAL.
A NULL
or invalid value was supplied for an input parameter. The error message text identifies the parameter.
INVALID_OPERATION.
SET_TRANSFORM_PARAM
was called after the first call to FETCH_xxx
for the OPEN
context. After the first call to FETCH_xxx
is made, no further calls to SET_TRANSFORM_PARAM
are permitted.
INCONSISTENT_ARGS
. The transform parameter name is not valid for the object type associated with the OPEN
context.
XSL-T allows parameters to be passed to stylesheets. You call SET_TRANSFORM_PARAM
to specify the value of a parameter to be passed to the stylesheet identified by transform_handle.
The most general way to specify stylesheet parameter values is as text strings. However, for the DDL transform, it is convenient to expose some parameters as Booleans. Consequently, two variants of the procedure are provided.
The GET_DDL
function allows the casual browser to extract the creation DDL for an object. So that you can specify transform parameters, this package defines an enumerated constant SESSION_TRANSFORM
as the handle of the DDL transform at the session level. You can call SET_TRANSFORM_PARAM
using DBMS_METADATA.SESSION_TRANSFORM
as the transform handle to set transform parameters for the whole session. GET_DDL
inherits these parameters when it invokes the DDL transform.
|
Copyright © 1996-2001, Oracle Corporation. All Rights Reserved. |
|