j'ai deux fichier XMl f1 et f2 qui ont par exemple la structure suivante :
f1 :
1 2 3 4 5 6 7 8
| <rocords>
</rocord>
<rocord_id>1</rocord_id>
<rocord_Descreption><![CDATA[<font face="Arial" size="2" color="#003366"><span><span>A pliable adhesive fire cement of putty-like consistency available in 5OOg and 1 kg containers<br /><br /></span></span></font><ul><li><font face="Arial" size="2" color="#003366"><span><span>Haz Class Irritant </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Ensure surface is clean and free from contamination.</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Use straight from the tub, apply with a trowel, knife, etc and work well into the area</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Hardens by air drying and operational heat which improves and strengthens seals and joints. Gently apply initial heat to the fire cement over a 3-4 hour period, and then gradually increase to full operating temperature. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Is water based and non-toxic, withstands heat up to 1400'C (2550'F)</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>This product is specially formulated and recommended by leading industrial and domestic heating appliance manufacturers throughout the world.</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Ideal for installation and maintenance of boilers, fires. flues, stoves. heating installations, ranges etc. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Fill and smooth any fine cracks if necessary. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Not suitable for large repair to masonary or rendering fireplaces. For this application see HeatProod Screed here </span></span></font></li></ul><font face="Arial" size="2" color="#003366"><span> </span></font><p>]]></rocord_Description>
</rocord>
</rocords> |
f2 :
1 2 3 4 5 6 7 8
| <enregistrements>
</enregistrement>
<enre_numero></enre_numero>
<enre_Des></enre_Des>
</enregistrement>
</enregistrements> |
Quand je fais la transfoprmation de F1 en F2 avac le fichier xsl suivant :
Code xml :
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
| <?xml version="1.0" encoding="ISO-8859-1"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:template match="/">
<enregistrements>
<xsl:for-each select="rocords/rocord">
<enregistrement>
<enre_numero><xsl:value-of select="rocord_id"/></enre_numero>
<enre_Description><xsl:value-of select="rocord_Des"/></enre_Description>
</enregistrement>
</xsl:for-each>
</enregistrements>
</xsl:template>
</xsl:stylesheet> |
il change la valeur de la balise <enre_Des></enre_Des>
en ceci :
Code xml :
<enre_Des><font face="Arial" size="2" color="#003366"><span><span>A pliable adhesive fire cement of putty-like consistency available in 5OOg and 1 kg containers<br /><br /></span></span></font><ul><li><font face="Arial" size="2" color="#003366"><span><span>Haz Class Irritant </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Ensure surface is clean and free from contamination.</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Use straight from the tub, apply with a trowel, knife, etc and work well into the area</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Hardens by air drying and operational heat which improves and strengthens seals and joints. Gently apply initial heat to the fire cement over a 3-4 hour period, and then gradually increase to full operating temperature. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Is water based and non-toxic, withstands heat up to 1400'C (2550'F)</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>This product is specially formulated and recommended by leading industrial and domestic heating appliance manufacturers throughout the world.</span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Ideal for installation and maintenance of boilers, fires. flues, stoves. heating installations, ranges etc. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Fill and smooth any fine cracks if necessary. </span></span></font></li></ul><ul><li><font face="Arial" size="2" color="#003366"><span><span>Not suitable for large repair to masonary or rendering fireplaces. For this application see HeatProod Screed here </span></span></font></li></ul><font face="Arial" size="2" color="#003366"><span> </span></font><p></enre_Des>
bref je pense que <> sont remplacés par ><
est ce que c'est normal?
est ce qu'il ya une solution pour que je garde les données de la balises sans changement.
Merci
Partager