This commit is contained in:
danrega
2024-02-12 11:42:11 +01:00
parent 8e2bfd7392
commit 20bc698fa3
9 changed files with 4093 additions and 4099 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,49 +1,48 @@
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="CARRIER_INFO"/>
<tt:template>
<html>
<body>
<h2>Information about Carriers</h2>
<table border="1">
<tr>
<td>
<b>ID</b>
</td>
<td>
<b>Name</b>
</td>
<td>
<b>Currency</b>
</td>
<td>
<b>Website</b>
</td>
</tr>
<tt:loop ref=".CARRIER_INFO">
<tr>
<td>
<tt:value ref="$ref.carrid"/>
</td>
<td>
<tt:value ref="$ref.carrname"/>
</td>
<td>
<tt:value ref="$ref.currcode"/>
</td>
<td>
<a>
<tt:attribute name="href" value-ref="$ref.url"/>
<tt:value ref="$ref.url"/>
</a>
</td>
</tr>
</tt:loop>
</table>
</body>
</html>
</tt:template>
</tt:transform>
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="CARRIER_INFO"/>
<tt:template>
<html>
<body>
<h2>Carrier Information</h2>
<table border="1">
<tr>
<td>
<b>ID</b>
</td>
<td>
<b>Name</b>
</td>
<td>
<b>Currency</b>
</td>
<td>
<b>Website</b>
</td>
</tr>
<tt:loop ref=".CARRIER_INFO">
<tr>
<td>
<tt:value ref="$ref.carrid"/>
</td>
<td>
<tt:value ref="$ref.carrname"/>
</td>
<td>
<tt:value ref="$ref.currcode"/>
</td>
<td>
<a>
<tt:attribute name="href" value-ref="$ref.url"/>
<tt:value ref="$ref.url"/>
</a>
</td>
</tr>
</tt:loop>
</table>
</body>
</html>
</tt:template>
</tt:transform>

View File

@@ -3,7 +3,7 @@
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<ATTRIBUTES>
<XSLTDESC>ZDEMO_ABAP_ST_STRTAB_HTML</XSLTDESC>
<XSLTDESC>ZDEMO_ABAP_ST_CARRHTML</XSLTDESC>
<LANGU>E</LANGU>
<DESCRIPT>ST Demo</DESCRIPT>
</ATTRIBUTES>

View File

@@ -1,23 +1,20 @@
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="STRING_TABLE"/>
<tt:template>
<html>
<body>
<h2>Content of String Table</h2>
<table border="1">
<tt:loop ref=".STRING_TABLE">
<tr>
<td>
<tt:value ref="$ref"/>
</td>
</tr>
</tt:loop>
</table>
</body>
</html>
</tt:template>
</tt:transform>
<?sap.transform simple?>
<tt:transform xmlns:tt="http://www.sap.com/transformation-templates">
<tt:root name="STRING_TABLE"/>
<tt:template>
<html>
<body>
<h2>String Table Content</h2>
<table border="1">
<tt:loop ref=".STRING_TABLE">
<tr>
<td>
<tt:value ref="$ref"/>
</td>
</tr>
</tt:loop>
</table>
</body>
</html>
</tt:template>
</tt:transform>

View File

@@ -3,7 +3,7 @@
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<ATTRIBUTES>
<XSLTDESC>ZDEMO_ABAP_ST_CARRIERS_HTML</XSLTDESC>
<XSLTDESC>ZDEMO_ABAP_ST_STRHTML</XSLTDESC>
<LANGU>E</LANGU>
<DESCRIPT>ST Demo</DESCRIPT>
</ATTRIBUTES>

View File

@@ -1,22 +1,20 @@
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[MAXSEATS and OCCSEATS]">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
<FREESEATS>
<xsl:value-of select="MAXSEATS - OCCSEATS"/>
</FREESEATS>
<OCCUPANCYRATE>
<xsl:value-of select="format-number(OCCSEATS div MAXSEATS * 100, '##.##')"/>
</OCCUPANCYRATE>
</xsl:copy>
</xsl:template>
</xsl:transform>
<xsl:transform xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:sap="http://www.sap.com/sapxsl" version="1.0">
<xsl:strip-space elements="*"/>
<xsl:template match="node()|@*">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
</xsl:copy>
</xsl:template>
<xsl:template match="*[MAXSEATS and OCCSEATS]">
<xsl:copy>
<xsl:apply-templates select="node()|@*"/>
<FREESEATS>
<xsl:value-of select="MAXSEATS - OCCSEATS"/>
</FREESEATS>
<OCCUPANCYRATE>
<xsl:value-of select="format-number(OCCSEATS div MAXSEATS * 100, '##.##')"/>
</OCCUPANCYRATE>
</xsl:copy>
</xsl:template>
</xsl:transform>

View File

@@ -3,7 +3,7 @@
<asx:abap xmlns:asx="http://www.sap.com/abapxml" version="1.0">
<asx:values>
<ATTRIBUTES>
<XSLTDESC>ZDEMO_ABAP_XSLT_FLIGHTS</XSLTDESC>
<XSLTDESC>ZDEMO_ABAP_XSLT_FL</XSLTDESC>
<LANGU>E</LANGU>
<DESCRIPT>XSLT Demo</DESCRIPT>
</ATTRIBUTES>