|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: language
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








