Charles Muller wrote:
> I must confess that I have not yet even looked at P5, out of the dread
> of the task of having to redo all of my style sheets. I am wondering if
> anyone has yet put together a summary of some of the basic changes that
> need to be made?
your stylesheet will have three big changes:
a) all the references to TEI element names need namespacing, ie
prefixing with tei:. This is hard to automate (think of
b) the <xref> and <xptr> elements go, and all linking is now
by full URL. so target="foo" is now target="#foo". So you need
to review code in that area
c) TEI.2 is now TEI - check all your XPaths.
You'll also need handlers for new objects like <choice> and <graphic>,
and review your <reg>, <corr> and friends if your texts use them.
You cannot write an XSLT 1.0 stylesheet which handles P4 and P5,
without it being unbelievably verbose. What I do is maintain
stylesheets in P5, and run a script to make them process P4. I am not
convinced its a good idea, mind; one of these days I will have to make
a more permanent split (possibly by freezing the P4 ones and only
enhancing the P5 ones).
I believe XSLT 2.0 might make a 2-in-1 stylesheet possible.
But I'll believe in that when there is more than one
Information Manager, Oxford University Computing Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431
OSS Watch: JISC Open Source Advisory Service