voici le fichier xsl :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45
|
<?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml"/>
<xsl:template match="Entitlement">
<message xml:space="preserve">
<subject>Entitlement certificate for Entitlement ID:<xsl:value-of select="@EntitlementID"/> attached</subject>
<body>
<xsl:text>
LECTRA grants</xsl:text> <xsl:value-of select="SoldTo"/><xsl:text> the right to activate the following product(s):
</xsl:text>
<xsl:apply-templates select="EntitlementLineItems" />
<xsl:text>
The Activation IDs will be required to login. You will also need the Hostid of the computer with which these licenses will be associated.
If you have any questions, contact your local LECTRA office.
TEST
http:\\www.google.com
TEST
Rights and restrictions on the use of the products are set forth in LECTRA License Terms agreement.
</xsl:text>
</body>
</message>
</xsl:template>
<xsl:template match="EntitlementLineItems">
<xsl:for-each select="EntitlementLineItem">
ActivationID: <xsl:value-of select="@ActivationID"/>
Product Name: <xsl:value-of select="Product/Name"/>
Product Desciption: <xsl:value-of select="Product/Description"/>
Order ID: <xsl:value-of select="OrderID"/>
Quantity: <xsl:value-of select="SeatCount"/>
</xsl:for-each>
</xsl:template>
</xsl:stylesheet> |
et j'aimerais ajouter dedans ce lien :
http://host:port/flexnet/operationsportal/autologon.do?activationId=@ActivationID
voilà.
Partager