>I intend to put some raw TEI/XML texts on-line to be browsed
>with MS IE. I am now struggling with XSLT stylesheets and
>encountered a problem of a single white space (ie. just a space)
>between two elements. For example:
> <foreName>John</foreName> <surname>Smith</surname>
> was born in 1875.
>is displayed as:
> Colonel JohnSmith was born in 1875.
>ie. with all spaces normalized except for the one which is
>the only character between two elements - with no textual data
While there are a number of ways to control whitespace either on
individual elements or the xslt stylesheet as a whole, the
easiest in this case might be to use the <xsl:text> </xsl:text>
element in your stylesheet. For example:
Or something similar like:
<xsl:value-of select="concat(persName, ' ', surname)"/>
Which should (I've not tested) do the same thing.
Dr James Cummings, [log in to unmask], http://www.uea.ac.uk/~q503
Cursus Project, School of Music, University of East Anglia,
Norwich, Norfolk, NR4 7TJ, UK Tel:(01603)593-595