List Info

Thread: new lines in
 blocks in xml/xhtml output




new lines in <pre> blocks in xml/xhtml output
user name
2007-09-10 13:53:35
[moving this over to the docbook-apps mailing list where
such topics are 
usually covered]

I'm not able to duplicate this problem with the stock html
and xhtml 
stylesheets.  Can you test with the stock stylesheets to see
if your 
customization might be introducing the changes?  That will
help us know 
where to look.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
bobssagehill.net


  ----- Original Message ----- 
  From: Marie Sauvage - EBM WebSourcing
  To: docbooklists.oasis-open.org
  Sent: Monday, September 10, 2007 2:47 AM
  Subject: [docbook] new lines in <pre> blocks in
xml/xhtml output


  Hi !

  I have a problem with output in xml/xhtml mode : the
generated source go 
to new line too often.
  Better than explanation here are the codes :
  My docbook source :
                <screen>
                a simple <emphasis
role="bold">test</emphasis> screen
                a simple test screen<co
id="simple-test-1" />
                a simple test screen
                </screen>

  The html output in mode="html" :

<pre class="screen">
              a simple <span
class="bold"><strong>test</strong>&
lt;/span> 
screen
              a simple test screen<a
name="simple-test-1"></a><img 
border="0" alt="1"
src="../../resources/images/callouts/1.png">
              a simple test screen
              </pre>
  The html output in mode="xml" (or
mode="xhtml") :

              <pre class="screen">
              a simple <span class="bold">
<strong>test</strong>
</span> screen
              a simple test screen<a
name="simple-test-1"/>
<img border="0" alt="1"
src="../../resources/images/callouts/1.png"/>
              a simple test screen
              </pre>
  Resulting problem is that when viewing the page with
browser, there is 
many line breaking and code isn't understandable.
  I'm trying to compare html and xhtml stylesheets from
docbook but don't 
find where the problem can come from and how to solve it.
Does anyone have 
an idea ?

  Thanks in advance,
  Marie.
 
------------------------------------------------------------
--------- To 
unsubscribe, e-mail: docbook-unsubscribelists.oasis-open.org For 
additional commands, e-mail: docbook-helplists.oasis-open.org 



------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


new lines in <pre> blocks in xml/xhtml output
user name
2007-09-11 02:46:12
My apologies, I receive the two mailing list and made a mistake in sending the mail.

I removed all my parameters to have a minimal xsl stylesheet :
<?xml version="1.0"?>
<xsl:stylesheet xmlnssl="http://www.w3.org/1999/XSL/Transform"
&nbsp;    &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;   &nbsp;  version='1.0'>
&nbsp; <xsl:import href="../docbook-xsl-1.72.0/html/chunk.xsl" />

  <xsl:output method="xhtml" encoding="UTF-8" indent="yes" />

</xsl:stylesheet&gt;

and still have the problem when changing the method (and not mode as I wrote before...).
I generate files with xalan, could it be his fault ? I'll test another processor and tell you if there is changes.

Marie.

Bob Stayton a écrit :
totoro" type="cite">[moving this over to the docbook-apps mailing list where such topics are usually covered]

I'm not able to duplicate this problem with the stock html and xhtml stylesheets.&nbsp; Can you test with the stock stylesheets to see if your customization might be introducing the changes?&nbsp; That will help us know where to look.

Bob Stayton
Sagehill Enterprises
DocBook Consulting
sagehill.net">bobssagehill.net


 ----- Original Message -----  From: Marie Sauvage - EBM WebSourcing
 To: lists.oasis-open.org">docbooklists.oasis-open.org
 Sent: Monday, September 10, 2007 2:47 AM
 Subject: [docbook] new lines in <pre>; blocks in xml/xhtml output


 Hi !

 I have a problem with output in xml/xhtml mode : the generated source go to new line too often.
 Better than explanation here are the codes :
 My docbook source :
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  <screen>
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  a simple <emphasis role="bold">test</emphasis> screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  a simple test screen<co id="simple-test-1" />
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  a simple test screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp; &nbsp;  </screen>

 The html output in mode="html" :

<pre class="screen">
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple <span class="bold"><strong>test</strong></span> screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple test screen<a name="simple-test-1"></a><img border="0" alt="1" src="../../resources/images/callouts/1.png"&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple test screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  </pre&gt;
 The html output in mode="xml" (or mode="xhtml") :

 &nbsp;   ; &nbsp; &nbsp; &nbsp;  <pre class="screen">
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple <span class="bold">
<strong>test</strong>
</span> screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple test screen<a name="simple-test-1"/>
<img border="0" alt="1" src="../../resources/images/callouts/1.png"/&gt;
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  a simple test screen
 &nbsp;   ; &nbsp; &nbsp; &nbsp;  </pre&gt;
 Resulting problem is that when viewing the page with browser, there is many line breaking and code isn't understandable.
 I'm trying to compare html and xhtml stylesheets from docbook but don't find where the problem can come from and how to solve it. Does anyone have an idea ?

 Thanks in advance,
 Marie.
 --------------------------------------------------------------------- To unsubscribe, e-mail: lists.oasis-open.org">docbook-unsubscribelists.oasis-open.org For additional commands, e-mail: lists.oasis-open.org">docbook-helplists.oasis-open.org




=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Scanned with Copfilter Version 0.83beta3a (P3Scan 2.2.1)
AntiSpam:  SpamAssassin 3.1.4
by Markus Madlener http://www.copfilter.org

[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )