Subject: Re: [xsl] Globalization with XSL-XML From: "cutlass" <cutlass@xxxxxxxxxxx> Date: Tue, 13 Nov 2001 10:26:33 -0000 |
the probs with multi lingual are a) how to deal with text and local styling of text b) how to deal with other binary assets ( i.e. pictures that are gifs ) c) should the application 'read' in the language of the client and parse in realtime a) I use a global template that matches txt, and a global param that gets passed in to the current template <xsl:param name="lang"/> here is the global template <xsl:param name="lang"/> <xsl:template match="txt"> <xsl:if test="@xml:lang=$lang"> <xsl:copy-of select="node()"/> </xsl:if> </xsl:template> example; <xsl:include href="global.xsl"/> <!---- this imports your global template ---> <xsl:template match="/"> <xsl:apply-templates select="document('asset.xml')//title/txt"/> <!--- this uses an external asset.xml which contains your text ---> <xsl:apply-templates select="title/txt"/> <!--- this uses xml which contains your text in assoc xml file ---> </xsl:template> here is the xml either contained in current.xml or asset.xml <title> <txt xml:lang="en"><b>test title</b></txt> <txt xml:lang="de"></txt> <txt xml:lang="fr"></txt> <txt xml:lang="it"></txt> </title> local styling can occur in the stylesheet or the xml. b) the same technique as a can be used, but u may find that some languages take up more space then others. c) i would definately say to preparse everything, as trying to in realtime dynamically present a site in its language takes too much time, sooooo u would have an individual directory for each language version. good luck cheers, jim fuller ----- Original Message ----- From: "Annalisa Ricci" <Annalisa.Ricci@xxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, November 13, 2001 10:17 AM Subject: [xsl] Globalization with XSL-XML > Hi all, > > I would know your opinion about the handling > of multilinguistic Web sites with XML and XSL. > > For example, are they convenient for handling Web applications > (see Input Forms) that can dynamically change their display, adapting > themselves to different languages and countries? > And how to handle multilanguage inputs? > > Why to choose XML-XSL and not, for ex., the Java properties? > > There is someone that could tell me his opinion and/or redirect me to > a web site? > > TIA, > Annalisa > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Globalization with XSL-XML, Annalisa Ricci | Thread | RE: [xsl] Globalization with XSL-XM, timw |
[xsl] Globalization with XSL-XML, Annalisa Ricci | Date | RE: [xsl] Positions, TSchutzerWeissmann |
Month |