Take a look at the following from the MODS site:
This stylesheet converts MODS to a 'simple HTML display'. The opening
associates the namespace ('http://www.loc.gov/mods/v3') with the
prefix 'mods' you can use to reference elements in the namespace.
I've always found it useful to start from a known working state, so I
hope this gets you started.
Good luck --
On Oct 24, 2006, at 7:14 AM, joseph greene wrote:
> I have been trying to transform MODS records to other formats (Dublin
> Core, HTML) and I can't seem to get it to work properly with the MODS
> xmlns information included in the root element. I've used several
> parsers for XSL 1.0 and 2.0 (through oXygen) and also xsltproc
> the command line). By process of elimination, I don't think it's a
> parser problem.
> If I include the xmlns information in the root element, the result is
> always text-- the value of each element. Once I remove references
> to the
> xmlns, the transformations work.
> I've managed to transform Dublin Core records containing XMLNS info in
> the root element by declaring the dc: prefix in the XSLT but I haven't
> been able to replicate this when transforming MODS.
> Here is a typical root element:
> <mods xmlns="http://www.loc.gov/mods/v3"
> I'm sure I'm missing something. Any ideas?
> Thanks in advance,
> Joseph Greene
> Irish Virtual Research Library and Archive
> 327 James Joyce Library
> University College Dublin
> Dublin 4