Hi Nik,
Nice examples!
I played around with them a bit because, though I have no intention of
expanding them to a full set of stylesheets, it struck me that they didn't
handle more than one language for the captions and the descriptions.
So I created a language.xslt and modified the stylesheet a bit so that it
now shows all langstrings for the caption and description element.
One other thing I wanted to do (and did) was to show that you of course can
use VDEX while transforming VDEX files ;-)
The XHTML output the modified stylesheet creates shows the description of
the language of the displayed caption/description instead of the actual
language code that is in de VDEX file.The language.xslt stylesheet uses an
second (external ) VDEX file (language_vdex.xml) to determine the language
string to display based on the default language of the first VDEX file.
So if the language of the VDEX file you are transforming is "nl" (Dutch),
the displayed language value for a caption with language "en" is "Engels".
While if you change the language of the file to "en", it displays "English".
If the language code isn't in language_vdex.xml, it simply displays the
actual language code.
I included a VDEX1.xml file in the zip-file which contains a couple of items
with captions and descriptions in different languages.
Feel free to use, modify or integrate the stylesheet and/or the
modifications in you own stylesheets.
Disclaimer: these also are Q&D!
Pierre Gorissen
Coordinator SURF SiX
Fontys University of Professional Education
The Netherlands
W: http://www.fontys.edu/
W: http://e-learning.surf.nl/SiX/english/
----- Original Message -----
From: "Nik Jewell" <[log in to unmask]>
To: <[log in to unmask]>
Sent: Wednesday, March 24, 2004 6:16 PM
Subject: VDEX XSLT
> Hi
>
> In connection with some work we're doing at the moment, we've put
> together some quick and dirty XSLTs to transform a VDEX vocabulary file
> into XHTML, and also a series of SQL insert statements. Phil suggested
> to me that they may be useful to others:
>
> http://www.prs-ltsn.ac.uk/technical/vdex_scripts.html
>
> They currently only implement the flatTokenTerms profile of the draft
> IMS VDEX format (http://www.imsglobal.org/vdex/index.cfm). If anybody
> is interested in developing them further to support the whole
> specificatiion then give me a shout.
>
> Cheers
>
> Nik
>
|