Fun with XML

May 25, 2005 by Oliver
Filed under: Languages, Technology 

http://www.oliverbrown.me.uk/vocab/reading/en-fi-1.xml.

You will need a fairly new browser to seethis properly.

Whether I can be bothered to make a whole website out of this, mirroring (and possible helping) my own attempt to learn Finnish, who knows…

finnish, xml, xsl, xslt]]>

Comments

No Comments on Fun with XML

  1. Nicholas Shanks on Fri, 3rd Jun 2005 8:30 pm
  2. < ![CDATA[well, a couple of things about this:

    1) nice XSLT
    2) i think you have the term tag the wrong way round - the content of should be monolingual (with an optional xml:lang tag) and the tr attribute on a term element should be the translation into the target language.
    3) safari disrespects the encoding given in the xml declaration, and/or your sending no/the wrong Content-Encoding HTTP header for the file.]]>

  3. Oliver on Sat, 4th Jun 2005 6:19 pm
  4. < ![CDATA[In reverse order..

    3) I want to actually output in utf-8 which I'm assuming would solve the problem (doesn't everything read XML in utf-8 by default these days?) but I couldn't work out how to simply type the Unicode versions of accented characters (if I just type it with my keyboard set to Finnish it doesn't work - I get the wrong ones).

    2) I'll think about it. The original reason I did it that way was because the person I was going to get to write the Finnish would be providing plain text and I'd add the XML.

    1) Thanks :o)]]>

  5. Oliver on Sat, 4th Jun 2005 6:21 pm
  6. It’s part of my plan to see if I can make a nice pesudo-dynamic website with no server side programming :o )