Subject: Re: language
From: Miloslav Nic <nicmila@xxxxxxxx>
Date: Mon, 19 Jul 1999 06:26:08 +0200
|
I probably do not understand your tags, but I did not find anything in
XSL(T) as xsl:method or xsl:process
> If I understand what you're trying to do correctly, you can do this
> using XML Script (http://www.xmlscript.org) like this...
>
> <XST __maxCR='1'>
> <_data>
> <!-- Animals names to translate -->
> <Animal name="Dog" />
> <Animal name="Cat" />
>
> <!-- Translations -->
> <Trans english="Dog" french="Chien" />
> <Trans english="Cat" french="Chat" />
> </_data>
>
> <!-- Template for displaying translations -->
> <_template name="Trans_template">
> <TD> # .french # </TD>
> </_template>
>
> <!-- Template for displaying animal names -->
> <_template name="Animal_template">
> <TR>
> <TD> # .name # </TD>
> <_process object="\Trans{.english == %.name}" />
> </TR>
> </_template>
>
> <!-- methods -->
> <_method object="Animal" template="Animal_template" />
> <_method object="Trans" template="Trans_template" />
>
> <!-- process Animal objects -->
> <_process object="Animal" />
>
> </XST>
>
> The output from this should be:
>
> <TR>
> <TD>Dog</TD>
> <TD>Chien</TD>
> </TR>
> <TR>
> <TD>Cat</TD>
> <TD>Chat</TD>
> </TR>
>
--
***************************************************************
Dr. Miloslav Nic e-mail: nicmila@xxxxxxxx
Department of Organic Chemistry TEL: +420 2 2435 5012
ICT Prague (VSCHT Praha) +420 2 2435 4118
FAX: +420 2 2435 4288
****************************************************************
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|