XSLT_SHRED Stored Procedure | XML Data Type | Teradata Vantage - XSLT_SHRED - Analytics Database - Teradata Vantage

XML Data Type

Deployment
VantageCloud
VantageCore
Edition
Enterprise
IntelliFlex
VMware
Product
Analytics Database
Teradata Vantage
Release Number
17.20
Published
June 2022
Language
English (United States)
Last Update
2023-10-30
dita:mapPath
tkc1628112506748.ditamap
dita:ditavalPath
qkf1628213546010.ditaval
dita:id
dgs1472251600184
lifecycle
latest
Product Category
Teradata Vantageā„¢

Use the XSLT_SHRED stored procedure for XML shredding (extracting values from a single XML document to be used to populate the database), and is based on an XSLT stylesheet.

XSLT_SHRED returns a result code.

Required Privileges

The XSLT_SHRED stored procedure is created under the user TD_SYSXML.

The user invoking this stored procedure must have the following privileges:
  • EXECUTE PROCEDURE on TD_SYSXML
  • SELECT privilege on the staging table
  • GRANT ALL (insert/update/delete/upsert) on the target tables

XSLT_SHRED Shredding Mapping Definition

XSLT-based shredding is based on a mapping defined by XSLT stylesheet documents. The stylesheet defines how different parts of the XML document map to columns in target tables in a relational database. Shredding procedures interpret the stylesheet mappings as instructions on what data items to extract from XML documents and how to use those data items in updating the target tables.

The XSLT_SHRED mapping definition is similar to the mapping definition for XSLT_SHRED_BATCH, except for the following differences.
  • genexp is a mandatory attribute for all the elements under <Row>.
  • Only the <xsl:value-of> element can be used; <xsl:copy-of> is not allowed.
  • CLOB and BLOB are not supported in XSLT_SHRED.