This commit is contained in:
wojciech
2024-08-07 16:22:28 +02:00
parent a8ac1fbc8f
commit ea7a079cad
17 changed files with 309 additions and 98 deletions

View File

@@ -13,7 +13,7 @@
</xsd:complexType>
</xsd:element>
</pd:startType>
<pd:startX>169</pd:startX>
<pd:startX>156</pd:startX>
<pd:startY>180</pd:startY>
<pd:returnBindings>
<root>
@@ -80,39 +80,39 @@
<pd:y>183</pd:y>
<config>
<element>
<xs:element xmlns:xs="http://www.w3.org/2001/XMLSchema" name="root">
<xs:complexType>
<xs:sequence>
<xs:element name="firstname" type="xsd:string"/>
<xs:element name="lastname" type="xsd:string"/>
<xs:element name="date-of-birth" type="xsd:string"/>
<xs:element name="date-of-death" type="xsd:string"/>
<xs:element name="id" type="xsd:string"/>
<xs:element name="age" type="xsd:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xsd:element name="root">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="firstname" type="xsd:string"/>
<xsd:element name="lastname" type="xsd:string"/>
<xsd:element name="date-of-birth" type="xsd:string"/>
<xsd:element name="date-of-death" type="xsd:string"/>
<xsd:element name="id" type="xsd:string"/>
<xsd:element name="age" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</element>
</config>
<pd:inputBindings>
<root>
<firstname>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '&quot;firstname&quot;:&quot;'), '&quot;')"/>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;firstName&quot;:&quot;'), '&quot;')"/>
</firstname>
<lastname>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '&quot;lastname&quot;:&quot;'), '&quot;')"/>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;lastName&quot;:&quot;'), '&quot;')"/>
</lastname>
<date-of-birth>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '&quot;day-of-birth&quot;:&quot;'), '&quot;')"/>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;dateOfBirth&quot;:&quot;'), '&quot;')"/>
</date-of-birth>
<date-of-death>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="substring-before(substring-after($Start/root/data, '&quot;day-of-death&quot;:&quot;'), '&quot;')"/>
<xsl:value-of select="substring-before(substring-after($Start/root/data, '&quot;dateOfDeath&quot;:&quot;'), '&quot;')"/>
</date-of-death>
<id>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '&quot;id&quot;:&quot;'), '&quot;') else substring-after($Start/root/data, 'id=')"/>
<xsl:value-of select="if ($Start/root/method = 'POST' or $Start/root/method = 'PUT' ) then substring-before(substring-after($Start/root/data, '&quot;id&quot;:&quot;'), '&quot;') else substring-after($Start/root/data, &quot;id=&quot;)"/>
</id>
<age>
<xsl:value-of xmlns:xsl="http://www.w3.org/1999/XSL/Transform" select="number(substring-before(substring-after($Start/root/data, '&quot;age&quot;:&quot;'), '&quot;'))"/>
<xsl:value-of select="number(substring-before(substring-after($Start/root/data, '&quot;age&quot;:&quot;'), '&quot;'))"/>
</age>
</root>
</pd:inputBindings>