Computer Batch Xml
From Fxp Wiki
Used to translate xml files from ISO-8859-1 to UTF-8.
I add the ms-dos bat files to loop through the files inside a directory.
Sert à transformer les fichiers xml de l'ISO-8859-1 vers l'UTF-8.
J'ajoute les fichiers ms-dos servant à faire une boucle sur tous les fichiers d'un répertoire.
Contents |
Xalan-j
java org.apache.xalan.xslt.Process -in 1.xml -xsl idutf.xsl -out 1a.xml
Iso-8859-1 to utf-8
idutf.bat
lfnfor on for %%V in (*.xml) do call idutf.bat %%V
idutf.bat
java org.apache.xalan.xslt.Process -in %1 -xsl idutf.xsl -out D:\xdata\xdata\cib2\cib4\x%1
idutf.xsl
<?xml version="1.0" encoding="utf-8"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns="blo" xmlns:cib="http://cib.wanadoo.fr/xmlns/cib" version="1.0"> <xsl:output method="xml" encoding="utf-8" omit-xml-declaration="yes" /> <xsl:template match="/"> <xsl:apply-templates/> </xsl:template> <xsl:template match="node()|@*"> <xsl:copy> <xsl:apply-templates select="@*"/> <xsl:apply-templates/> </xsl:copy> </xsl:template> </xsl:stylesheet>
Categories: Xml | Xsl | Batch | Java
