When processing two consecutive elements in mixed
content separated by
white-space, using text output in XSLT, the
white-space
gets lost.
This occurs using Saxon 6.5.2 under Red Hat 9: I
haven't tested it with
anything else yet, but the sister stylesheet which
output HTML keeps the
white-space as expected. Is this a bug or a feature of
XSLT text-mode?
Output from Saxon:
\documentclass{article}
\begin{document}
Created using the \product{DocBook}\acro{DTD} on
2003-05-05.
\end{document}
This looks wrong: the white-space in mixed content
should be honoured
between the productname element and the acronym
element. Both nsgmls
and rxp retain the newline and space tokens. Or have I
missed something
arcane in the XSLT spec?
I know little about the spec (so much reading! hehehe),
but here is the output
from Xalan 2.5
+========================================+
\documentclass{article}
\begin{document}
Created using the \product{DocBook}\acro{DTD} on
2003-05-05.
\end{document}
+========================================+
and saxon7.4
\documentclass{article}
\begin{document}
Created using the \product{DocBook}\acro{DTD} on
2003-05-05.
\end{document}
+========================================+
_/ _/_/ _/_/_/
_/_/ _/ _/ _/
_/ _/
_/ _/
_/ _/_/_/_/
http://treebeard.sourceforge.net
http://ashpool.sourceforge.net
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list