dnet-core/dnet-data-services/src/test/resources/trds_sample.xml

39 lines
1.1 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<RESOURCE_PROFILE xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="TransformationRuleDSResourceType.xsd">
<HEADER>
<RESOURCE_IDENTIFIER value="123"/>
<RESOURCE_TYPE value="TransformationRuleDSResourceType"/>
<RESOURCE_KIND value="TransformationRuleDSResources"/>
<RESOURCE_URI value=""/>
<DATE_OF_CREATION value="2001-12-31T12:00:00"/>
</HEADER>
<BODY>
<CONFIGURATION>
<IMPORTED>
<SCRIPT_REFERENCE id="123456">SubSample</SCRIPT_REFERENCE>
</IMPORTED>
<SCRIPT>
<TITLE>MainSample</TITLE>
<CODE>
// declare the import of script(s)
import (subScript_example.ftl);
// declare namespace(s)
declare_ns prefix=http://somenamespace.xyz.de;
// declare the script name
declare_script MainSample;
// set a rule of type function
lv = Convert(xpath:/dc.metadata.language,LangVocab);
// mark the end of the script
end
</CODE>
</SCRIPT>
</CONFIGURATION>
<STATUS/>
<SECURITY_PARAMETERS>SECURITY_PARAMETERS</SECURITY_PARAMETERS>
</BODY>
</RESOURCE_PROFILE>