This is the mail archive of the
docbook@lists.oasis-open.org
mailing list for the DocBook project.
Re: DocBook XSL stylesheet loses whitespace with MSXML
- From: Jirka Kosek <jirka at kosek dot cz>
- To: Kevin Yank <kevin at sitepoint dot com>
- Cc: docbook at lists dot oasis-open dot org
- Date: Thu, 03 Oct 2002 16:37:10 +0200
- Subject: Re: DOCBOOK: DocBook XSL stylesheet loses whitespace with MSXML
- References: <007201c26ae9$309a7bb0$0200a8c0@amethyst>
Kevin Yank wrote:
> >From tinkering with the test document, it seems like MSXML is dicarding
> any whitespace-only text nodes in the <screen> element.
This is known bug/feature of MSXML. It removes all white-space only
nodes from source tree.
> Can anyone explain this behaviour? Can anyone suggest a
> modification/extension to the standard XSL stylesheet for DocBook that
> would prevent this from happening? I've been at this for hours and have
> been unable to figure out what's tripping up MSXML.
You can invoke MSXML manually by some script and turn off whitespace
stripping (there is property on parser object for doing this). You can
find more info in MSXML SDK.
Jirka
--
-----------------------------------------------------------------
Jirka Kosek
e-mail: jirka@kosek.cz
http://www.kosek.cz