Custom Record 4.41" Example
A 4.41" example using a custom record
- Template: templates/custom4.xsl
- Record: records/valensina.xml
Custom Record 4.41" Example (Template)
<xsl:stylesheet version="2.0"
>
<xsl:template match="Record"
>
<image height="300"
width="400"
>
<field height="130"
width="380"
x="10"
y="10"
>
<text font-family="Tahoma"
font-size="30"
>
<xsl:value-of select="Article/Name"
>
</xsl:value-of>
</text>
<text font-family="Tahoma"
font-size="22"
padding-top="10"
>
<xsl:value-of select="Article/Description"
>
</xsl:value-of>
</text>
</field>
<field height="80"
width="170"
x="10"
y="155"
>
<text font-family="Tahoma"
font-size="22"
padding-top="10"
>
<xsl:value-of select="Article/Unit"
>
</xsl:value-of>
</text>
</field>
<field height="171"
width="170"
x="135"
y="129"
>
<text align="right"
font-family="Haettenschweiler"
font-size="160"
>
<xsl:value-of select="substring-before(Article/Price,',')"
>
</xsl:value-of>
</text>
</field>
<field height="130"
width="115"
x="285"
y="140"
>
<text font-family="Haettenschweiler"
font-size="115"
>
<xsl:value-of select="substring-after(Article/Price,',')"
>
</xsl:value-of>
</text>
</field>
<field align="center"
height="30"
width="120"
x="10"
y="240"
>
<barcode humanReadableEnabled="false"
type="code128"
>
<xsl:value-of select="Article/@number"
>
</xsl:value-of>
</barcode>
</field>
<field height="13"
width="120"
x="10"
y="275"
>
<text align="center"
font-family="Tahoma"
font-size="11"
>
<xsl:value-of select="Article/@number"
>
</xsl:value-of>
<xsl:value-of select="Task/CurrentDate"
>
</xsl:value-of>
</text>
</field>
</image>
</xsl:template>
</xsl:stylesheet>
Custom Record 4.41" Example (Record)
<Article number="1229517"
>
<Name>
Valensina Saftorangen
</Name>
<Description>
Deklaration lt. Etikett
</Description>
<Unit>
1-Kilogramm- Netz
</Unit>
<Price>
2,49
</Price>
</Article>