[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] Re: entry elements are run together without whitespace
I can duplicate this behavior, but only when the content is in an <entry> element in a table. Oddly enough, Saxon does the same thing, as does the fo/docbook.xsl stylesheet! It isn't the fact that these are entities at all. An entry like this has the same effect <entry>(<command>cat</command> <filename>filename</filename>)</entry> When processed, any white space between the command and filename elements is gone. I checked the template for entry, and in the end it just does an apply-templates on the contents of the element. When I add a xsl:for-each select="node()" to examine what is in the element, the space between command and filename does not show up as a text node. Somehow it seems the parser is considering the space between those elements to be xml whitespace rather than a text node whitespace. The entry element's content model starts with #PCDATA, so it seems that the whitespace should be treated as nodes. I don't get it. Bob Stayton Sagehill Enterprises DocBook Consulting bobs@sagehill.net ----- Original Message ----- From: "Michael Smith" <smith@xml-doc.org> To: <docbook-apps@lists.oasis-open.org> Sent: Wednesday, June 16, 2004 7:10 AM Subject: Re: [docbook-apps] Re: entry elements are run together without whitespace > Well, then I'm out of ideas :( I tested your case with the latest > xsltproc and can't reproduce it. Might it be that you're using an older > version of xlstproc/libxslt/libxml? > > What you're saying is that if you look at the generated HTML, you don't see this: > > <tt class="classname">STANDARD-OBJECT</tt></a> <a href="/Body/syscla_function.html" target="_top"><tt class="classname">FUNCTION</tt></a> > ^ > > That is, no space after the closig "</a>" tag and the next <a href...>, right? > > When I test with the latest xsltproc, I get a space there... > > Sam Steingold <sds@gnu.org> writes: > > > > * Michael Smith <fzvgu@kzy-qbp.bet> [2004-06-16 17:43:45 +0900]: > > > > > > Are you maybe post-processing your xsltproc output through HTML Tidy > > > or something (to indent it or whatever)? > > > > no. HTML looks as ugly as always, but without the spaces > > > > > Sam Steingold <sds@gnu.org> writes: > > > > > >> > > >> <!ENTITY function-t "<ulink url='&clhs;/Body/syscla_function.html'><classname>FUNCTION</classname></ulin k>"> > > >> <!ENTITY standard-object-t "<ulink url='&clhs;/Body/cla_standard-object.html'><classname>STANDARD-OBJECT</class name></ulink>"> > > >> > > >> <row><entry>no</entry><entry>&funcallable-standard-object-t;</entry> > > >> <entry>(&standard-object-t; &function-t;)</entry></row> > > >> > > >> HTML produced by xsltproc has no space between STANDARD-OBJECT and > > >> FUNCTION - they are run together! > > To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]