Dear xslters,
I would like to know whether it's possible to do the following with XSLT.
I've got one XML file with one <file> element and I would like to
transform it into a XML file which has several <file> elements, the only
different among them being a lang attribute (the content of <file>
should be the same in the input and the output). Let me show you some
code and you'll see more clearly:
___intput___:
<xliff>
<file>(...)</file>
</xliff>
___desired output___:
<xliff>
<file lang="en">(...)</file>
<file lang="fr">(...)</file>
<file lang="pt">(...)</file>
</xliff>
Is it possible to pass the respective values of that attribute to the
spreadsheet in some way, so that the spreadsheet will know how many
(depending on the number of values) <input> elements must be generated
and what value exactly their lang attribute must have. I'm wondering
about how to pass the arguments to the spreadsheets and how the
spreadsheets should handle them.
If this was a perl script, I would run:
$ perl -lang=en,fr,pt script.pl input.xml > output.xml
Is it possible to run something like that using the param option (or,
even better, to do it in the editor)? (in capitals for clarity)
$ java -jar path/to/saxon9.jar LANG=en,fr,pt input.xml spreadsheet.xsl >
output.xml
I guess it must be something like that, but then, how do I get those 3
or n parameters into the spreadsheet? If it was only one parameter i
would get it with
<xsl:param name="lang"/>
but as there are more than one, I guess I should put them in a kind of
array and then do a for-each?
I'd be grateful for any opinion.
Best regards!!
--
Manuel Souto Pico
Terminòleg / Responsable de servei tècnic
manuel(_dot_)souto(_at_)star-group(_dot_)net
<mailto:manuel(_dot_)souto(_at_)star-group(_dot_)net>
*STAR Servicios Lingüísticos*
C. Sardenya, 195-197 (baixos)
E-08013 Barcelona
Tel. +34 932 440 889
Fax: +34 932 471 273
http://www.star-spain.com
http://www.star-group.net <http://www.star-spain.com>
En cumplimiento con lo previsto en los artículos 21 y 22 de la Ley
34/2002, de 11 de julio, de Servicios de la Sociedad de Información y
Comercio Electrónico (LSSI) y las disposiciones de la Ley Orgánica
15/1999, de 13 de diciembre de Protección de Datos de Carácter Personal
(LOPD) le informamos que procederemos al archivo y tratamiento de sus
datos exclusivamente con fines de promoción de los productos y servicios
ofrecidos por STAR Servicios Lingüísticos, S.L. Este mensaje, y en su
caso, cualquier fichero anexo al mismo, puede contener información
confidencial o legalmente protegida, siendo para uso exclusivo del
destinatario. No hay renuncia a la confidencialidad o secreto
profesional por cualquier transmisión defectuosa o errónea, y queda
expresamente prohibida su divulgación, copia o distribución a terceros
sin la autorización expresa de STAR Servicios Lingüísticos, S.L. Si ha
recibido este mensaje por error, se ruega lo notifique a STAR Servicios
Lingüísticos enviando un mensaje al remitente o al correo electrónico
info(_at_)star-spain(_dot_)com y proceda inmediatamente al borrado del mensaje
original y de todas sus copias. Gracias por su colaboración. Si desea
más información sobre sus derechos en lo que respecta al tratamiento de
sus datos de carácter personal, visite
http://www.star-spain.com/es/inicio/lopd.php
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--