[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: Losing white-space in mixed content

Subject: Re: Losing white-space in mixed content
From: me@xxxxxxxxxxxx
Date: Mon, 05 May 2003 16:05:58 -0700 (PDT)
Re:  Losing white-space in mixed content
> 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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.