Subject: [xsl] parse multilanguage XML-file From: jm <mailinglist@xxxxxxxxxxxxxx> Date: Wed, 5 Mar 2003 14:22:33 +0100 |
hi, i have problems parsing my multilanguage XML file. here is a short outline of the XML file: <?xml version="1.0" encoding="ISO-8859-1"?> <page> <pagecontent> <lang name="de"> <section> ...... <!-- here comes for example the complete german content of this file --> </section> </lang> <lang name="en"> <section> ...... </section> </lang> </pagecontent> </page> now i want to match _only_ on of the language parts so my first tamplate-match is <xsl:template match="/page/pagecontent/lang[@name='de']"> <html> <body> <xsl:apply-templates/> <----------------+ </body> | </html> | </xsl:template> | | how can apply my following tamplates only on child-nodes of /page/pagecontent/lang[@name='de'] and _ignore_ all other language-nodes. one of the folowing templates is <xsl:template match="section"> <xsl:value-of select="@title"/> <hr/> ... </xsl:template> and i want to apply this template only on child-nodes of the chosen language-node. thanks jm XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] Embedding XSL in JavaScri, John Proctor | Thread | RE: [xsl] parse multilanguage XML-f, Andrew Welch |
Re: [xsl] Re: Re: Creating a XSL to, Dimitre Novatchev | Date | RE: [xsl] parse multilanguage XML-f, Andrew Welch |
Month |