[tei-council] working with translation

Sebastian Rahtz sebastian.rahtz at it.ox.ac.uk
Wed Oct 30 12:13:48 EDT 2013


On 30 Oct 2013, at 16:09, Martin Holmes <mholmes at uvic.ca> wrote:

> where if the choose/when is selected, you end by doing this:
> 
> 	<xsl:apply-templates
> 	    select="*|processing-instruction()|comment()|text()"/>
> 
> while if the otherwise is selected, you do this:
> 
> 	<xsl:apply-templates
> 	    select="@*|*|processing-instruction()|comment()|text()"/>
> 
> In the "when" case, any attributes which are not @xml:lang or @versionDate will be lost. I think it's unlikely that any <desc>, <gloss> or <remarks> would have any other attributes in this context, but it's conceivable.
> 

fair point.  added
	@*[not(name()='xml:lang' or name()='versionDate')]

--
Sebastian Rahtz      
Director (Research) of Academic IT
University of Oxford IT Services
13 Banbury Road, Oxford OX2 6NN. Phone +44 1865 283431



More information about the tei-council mailing list