書式
SDO_CSW_PROCESS.InsertRecordViewMap( recordTypeNs IN VARCHAR2, viewSrcName IN VARCHAR2, targetTypeName IN VARCHAR2, mapInfo IN XMLTYPE, mapType IN VARCHAR2);
説明
レコード・ビューの変換に関連する情報を挿入します。
パラメータ
レコード・タイプの名前空間のURLを指定します。
ソース・レコード・タイプの名前(BriefRecord、DCMIRecord、Record、SummaryRecordなど)を指定します。
ターゲット・レコード・タイプの名前(BriefRecord、DCMIRecord、Record、SummaryRecordなど)を指定します。
マッピングのXSLT定義を指定します。(BriefRecordタイプからRecordタイプへの変換については、この項の最後にある例のコメントを参照してください。)
マップ・タイプ(brief、summaryなど)を指定します。
使用上の注意
Catalog Services for the Webのサポートについては、「Catalog Services for the Web (CSW)のサポート」を参照してください。
例
次の例では、BriefRecordタイプからRecordタイプへの変換に関連する情報を挿入します。
create or replace directory CSWUSERDIR as 'dir_path_where_mapinfo.xsl_file_is_located' ;
/*
// Content of mapinfo.xsl could be that which transforms
// all <csw:BriefRecord> node to <csw:Record> node, where csw is
// the namespace alias for "http://www.opengis.net/cat/csw"
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:csw="http://www.opengis.net/cat/csw">
<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes" />
<xsl:template match="/">
<csw:Record xmlns:csw="http://www.opengis.net/cat/csw" xmlns:dc="http://www.purl.org/dc/elements/1.1/" xmlns:ows="http://www.opengis.net/ows" xmlns:dct="http://www.purl.org/dc/terms/">
<xsl:apply-templates select="@*|node()"/>
</csw:Record>
</xsl:template>
<xsl:template match="csw:BriefRecord">
<xsl:apply-templates select="@*|node()"/>
</xsl:template>
<xsl:template match="@*|node()">
<xsl:copy>
<xsl:apply-templates select="@*|node()"/>
</xsl:copy>
</xsl:template>
</xsl:stylesheet>
*/
DECLARE
rtId NUMBER;
BEGIN
SDO_CSW_PROCESS.insertRecordViewMap('http://www.opengis.net/cat/csw',
'BriefRecord',
'Record',
xmltype(bfilename('CSWUSERDIR', 'mapinfo.xsl'), nls_charset_id('AL32UTF8')),
'brief');
END;
/