[4suite] TextWriter bug ?
Uche Ogbuji
uche.ogbuji at fourthought.com
Fri Sep 22 15:54:24 MDT 2000
Alexandre Fayolle wrote:
[snip]
> If we modify it slightly, and use appendStyleSheetNode however, things get
> curious:
[snip]
I can reproduce the bug if we use appendStylesheetNode. First a minor
note: the following ois incorrect
<xsl:strip-space elements='//*'/>
The xsl:strip-space elements argument is not just an XPath expression
but a space-delimited list of Nametests. This means "*", "ns:*",
"ns:foo" and only in this form. What you wanted was probably
<xsl:strip-space elements='*'/>
We should do better error-checking there.
> In this case, we get the error mentionned in my original bug. Curiouser
> and curiouser, if we use DowWriter in runUri, there is no error, but the
> output is very strange ( and spaces everywhere).
The problem was in converting 4DOM to the special Stylesheet DOM. It's
fixed.
> Now the solution is to use StripXml on the transformation, and afterwards
> everything works properly. Maybe the StripXml should be in
> appendStylesheetNode?
Yes, as you point out in your next message. We meant to put it back in
before release. Done now.
--
Uche Ogbuji Principal Consultant
uche.ogbuji at fourthought.com +1 303 583 9900 x 101
Fourthought, Inc. http://Fourthought.com
4735 East Walnut St, Ste. C, Boulder, CO 80301-2537, USA
Software-engineering, knowledge-management, XML, CORBA, Linux, Python
More information about the 4suite
mailing list