|
|
@@ -0,0 +1,56 @@
|
|
|
+<?xml version="1.0" encoding="UTF-8"?>
|
|
|
+<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
|
|
|
+ xmlns:xs="http://www.w3.org/2001/XMLSchema"
|
|
|
+ xmlns:wfs="http://www.opengis.net/wfs"
|
|
|
+ xmlns:ogc="http://www.opengis.net/ogc"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ xmlns:default_objects="https://biuro.biall-net.pl/wfs/default_objects"
|
|
|
+ xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
+ xmlns:default_db__x3A__TestPermsAnt="https://biuro.biall-net.pl/wfs/default_db/table/TestPermsAnt.xsd"
|
|
|
+ xmlns:default_db__x3A__CRM_UI_MSGS="https://biuro.biall-net.pl/wfs/default_db/table/CRM_UI_MSGS.xsd"
|
|
|
+ exclude-result-prefixes="xs"
|
|
|
+ version="2.0">
|
|
|
+
|
|
|
+ <!-- default trigger to enable CRM_UI_MSGS to see some informations from records -->
|
|
|
+ <xsl:output indent="yes"/>
|
|
|
+ <xsl:strip-space elements="*"/>
|
|
|
+
|
|
|
+ <xsl:param name="trigger_name" select="'CRM_UI_MSGS'"/>
|
|
|
+ <!--<xsl:param name="stream_path" select="'/'"/>-->
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+ <xsl:template match="wfs:WFS_TransactionResponse" xpath-default-namespace="http://www.opengis.net/wfs"> <!-- TODO tez bez tego na razie: mode="default_db__x3A__CRM_UI_MSGS:INPUT" TODO nie moge matchowac po namespace obiektu xpath-default-namespace="https://biuro.biall-net.pl/wfs/default_db/table/TestPermsAnt.xsd" -->
|
|
|
+ <xsl:param name="wfs:Transaction" required="yes"/> <!-- wymagane przekazanie tego co zostało przekazane do transakcji -->
|
|
|
+ <Transaction
|
|
|
+ xmlns="http://www.opengis.net/wfs"
|
|
|
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
|
|
+ version="1.0.0"
|
|
|
+ service="WFS"
|
|
|
+ xmlns:p5_default_db="https://biuro.biall-net.pl/wfs/default_db"
|
|
|
+ xmlns:gml="http://www.opengis.net/gml">
|
|
|
+ <xsl:apply-templates>
|
|
|
+ <xsl:with-param name="wfs:Transaction" select="$wfs:Transaction"/>
|
|
|
+ </xsl:apply-templates>
|
|
|
+ </Transaction>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+ <xsl:template match="wfs:InsertResult">
|
|
|
+ <xsl:param name="wfs:Transaction" required="yes"/>
|
|
|
+ <Insert xmlns="http://www.opengis.net/wfs">
|
|
|
+ <p5_default_db:CRM_UI_MSGS>
|
|
|
+ <idReplyTo/>
|
|
|
+ <idThread/>
|
|
|
+ <app_className/>
|
|
|
+ <msg>Dodano rekord do tabeli TestPermsAnt<xsl:value-of select="$wfs:Transaction/wfs:Insert[position()=current()/position()]/p5_default_db:TestPermsAnt/Opis"/></msg>
|
|
|
+ <msgType>info</msgType>
|
|
|
+ <uiTargetType>default_db_table_record</uiTargetType>
|
|
|
+ <uiTargetName><xsl:value-of select="@fid"/></uiTargetName>
|
|
|
+ <userTargetName>Stary Opis</userTargetName>
|
|
|
+ <actionExecutedTime>Stary Opis</actionExecutedTime>
|
|
|
+ <actionNotes>Stary Opis</actionNotes>
|
|
|
+ </p5_default_db:CRM_UI_MSGS>
|
|
|
+ </Insert>
|
|
|
+ </xsl:template>
|
|
|
+
|
|
|
+</xsl:stylesheet>
|