Re: [docbook-apps] Applying Docbook/XSL stylesheet directly to docbook.xml document?

2013-06-26 Thread Jirka Kosek
On 25.6.2013 21:32, ольга крыжановская wrote:
 Has any one an example style sheet fragment which shows how the
 Docbook/XML to HTML/XHTML XSL style sheet can be added to the
 Docbook/XML document itself?
 The idea is to add the XSL transformation style sheet as style sheet
 reference to the Docbook/XML document that a browser like Seamonkey
 can view it directly.

There is standard instruction for this, your file should start with

?xml version=1.0?
?xml-stylesheet href=docbook.xsl type=text/xsl?
book ...

/book

But please note that standard DocBook stylesheets are too complex for
many browsers -- they will usually fail or at least render it quite
slowly. But if you create simpler stylesheet covering only subset of
elements you are using you can get pretty decent browser rendering.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature


RE: [docbook-apps] Applying Docbook/XSL stylesheet directly to docbook.xml document?

2013-06-26 Thread Eduard Tibet
Hello!

Olga, if your docbook xml source is quite simple in structure maybe other 
approach to xml rendering have to be chosen? What about direct xml rendering by 
CSS? In these posts [1],[2] you can find out the details about it. 

[1] http://permalink.gmane.org/gmane.text.docbook.apps/24325
[2] http://permalink.gmane.org/gmane.text.docbook.apps/24321

--
Best regards,
 Eduard Tibet


-Original Message-
From: Jirka Kosek [mailto:ji...@kosek.cz] 
Sent: Wednesday, June 26, 2013 4:27 PM
To: ольга крыжановская
Cc: docb...@lists.oasis-open.org; docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Applying Docbook/XSL stylesheet directly to 
docbook.xml document?

On 25.6.2013 21:32, ольга крыжановская wrote:
 Has any one an example style sheet fragment which shows how the 
 Docbook/XML to HTML/XHTML XSL style sheet can be added to the 
 Docbook/XML document itself?
 The idea is to add the XSL transformation style sheet as style sheet 
 reference to the Docbook/XML document that a browser like Seamonkey 
 can view it directly.

There is standard instruction for this, your file should start with

?xml version=1.0?
?xml-stylesheet href=docbook.xsl type=text/xsl? book ...

/book

But please note that standard DocBook stylesheets are too complex for many 
browsers -- they will usually fail or at least render it quite slowly. But if 
you create simpler stylesheet covering only subset of elements you are using 
you can get pretty decent browser rendering.

Jirka

--
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



Re: [docbook-apps] Applying Docbook/XSL stylesheet directly to docbook.xml document?

2013-06-26 Thread Jirka Kosek
On 26.6.2013 14:51, Eduard Tibet wrote:

 Olga, if your docbook xml source is quite simple in structure maybe other 
 approach to xml rendering have to be chosen? What about direct xml rendering 
 by CSS? In these posts [1],[2] you can find out the details about it. 

Please note that CSS doesn't provide means to make links functional and
to show images. This can be solved for some browsers by using CSS
extensions or HTC/XBL, or alternatively you can attach simple XSLT which
will turn DocBook links and images into HTML links/images and then rest
of rendering you can handle by CSS.

Jirka

-- 
--
  Jirka Kosek  e-mail: ji...@kosek.cz  http://xmlguru.cz
--
   Professional XML consulting and training services
  DocBook customization, custom XSLT/XSL-FO document processing
--
 OASIS DocBook TC member, W3C Invited Expert, ISO JTC1/SC34 rep.
--
Bringing you XML Prague conferencehttp://xmlprague.cz
--



signature.asc
Description: OpenPGP digital signature


Re: [docbook-apps] How do I style a list of tables?

2013-06-26 Thread Bob Stayton
Hi Eric,
I'm not sure what differences you are seeing between the TOC and list of 
tables?  They look the same in my output. 

Regarding the labels, are you referring to List of Tables?  If so, those are 
in the gentext files such as common/en.xml,

l:gentext key=ListofTables text=List of Tables/

and can be customized per this doc:

http://www.sagehill.net/docbookxsl/CustomGentext.html

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


From: Eric Nordlund 
Sent: Tuesday, June 25, 2013 9:20 AM
To: docbook-apps@lists.oasis-open.org 
Subject: [docbook-apps] How do I style a list of tables?


Hello. I have a docbook - PDF transformation that is looking pretty good, but 
the List of tables/procedures/examples is styled differently than the rest of 
the table of contents. Is there a way for me to make these lists inherit the 
margins from the TOC?

 

Also, I want to customize the generated text for the labels in these lists. Can 
anyone give me some hints on where to change values for my customization layer?

 

Thanks!

 

Eric Nordlund

Customer Documentation and Training

Cray Inc.

901 5th Ave

Seattle, WA 98164

(206)701-2232

 


Re: [docbook-apps] How do I style a list of tables?

2013-06-26 Thread Bob Stayton
Oh, you probably changed the 'toc.margin.properties' attribute-set.  You are 
right, that should also be used for lists of tables, etc.

You can add it to the template named 'list.of.titles' in your customization 
layer, from fo/autotoc.xsl:

fo:block id=lot...{$titles}...{$id}
xsl:use-attribute-sets=toc.margin.properties

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


From: Bob Stayton 
Sent: Wednesday, June 26, 2013 9:36 AM
To: Eric Nordlund ; docbook-apps@lists.oasis-open.org 
Subject: Re: [docbook-apps] How do I style a list of tables?


Hi Eric,
I'm not sure what differences you are seeing between the TOC and list of 
tables?  They look the same in my output. 

Regarding the labels, are you referring to List of Tables?  If so, those are 
in the gentext files such as common/en.xml,

l:gentext key=ListofTables text=List of Tables/

and can be customized per this doc:

http://www.sagehill.net/docbookxsl/CustomGentext.html

Bob Stayton
Sagehill Enterprises
b...@sagehill.net


From: Eric Nordlund 
Sent: Tuesday, June 25, 2013 9:20 AM
To: docbook-apps@lists.oasis-open.org 
Subject: [docbook-apps] How do I style a list of tables?


Hello. I have a docbook - PDF transformation that is looking pretty good, but 
the List of tables/procedures/examples is styled differently than the rest of 
the table of contents. Is there a way for me to make these lists inherit the 
margins from the TOC?

 

Also, I want to customize the generated text for the labels in these lists. Can 
anyone give me some hints on where to change values for my customization layer?

 

Thanks!

 

Eric Nordlund

Customer Documentation and Training

Cray Inc.

901 5th Ave

Seattle, WA 98164

(206)701-2232

 


RE: [docbook-apps] Strange effect using in 1.78.1 webhelp output

2013-06-26 Thread Olsen, Morten Engelhardt
I can't really say if it is new in 1.78.1. We used a highly modified version of 
the 1.76 version before, but I'm redesigning after we upgraded our 
documentation repositories to docbook 5.0.

I have managed to divide and conquer the generated html, and ended up with the 
following css stub that is embedded directly into the header of each document 
during transformation:

.ui-layout-pane{ /* all 'panes' */
background:#FFF;
  border:1px solid #BBB;
  padding:05x;
  overflow:auto;
}

Removing this, and everything seems to be as it should. Anybody got any idea 
why this css code gives the shadow empty box seen in my previous mail?

 :: Morten

-Original Message-
From: Peter Desjardins [mailto:peter.desjardins...@gmail.com] 
Sent: 23. juni 2013 04:40
To: Olsen, Morten Engelhardt
Cc: docbook-apps@lists.oasis-open.org
Subject: Re: [docbook-apps] Strange effect using in 1.78.1 webhelp output

Hi.

Is this behavior new in 1.78.1? Were you seeing correct behavior in an
earlier version or is this the first time you've used webhelp?

Have you tried viewing the pages with Chrome or Firefox? Maybe this
could be caused by Opera interpreting the CSS differently?

Index.png looks really strange. The TOC/search div is completely empty
and there's a mysterious, empty div in front of your autogenerated
TOC. What happens if you remove your customization layer and build
webhelp with the default stylesheets?

Also, are you using a book element for your document or article?

Peter


On Sat, Jun 22, 2013 at 2:27 PM, Olsen, Morten Engelhardt
morten_engelhardt.ol...@atmel.com wrote:
 Hi all,



 I'm seeing some strange effect when I use the new version of the webhelp
 output. My guess is that this comes from the new split environment, but I'm
 unable to see where the error is.



 I'm attaching some screenshots of this in the hope that anybody has seen
 this before.



 The file index.png is a normal titlepage. Here the sidebar seems to flow out
 double of that it should. index_no_sidebar.png is the same page with the
 sidebar removed. In the file preface.png, this effect seems not to happen.
 From what I have seen it looks like this only manifests on autogenerated
 pages (toc in my case).



 I'm also attaching some of my html output in case anybody has the
 opportunity to have a look at them if it is enough in the zip...



 Morten Engelhardt Olsen

 Software Engineer / Tools Group / Atmel Corporation

 Tel: (+47) 930 94 593

 morten_engelhardt.ol...@atmel.com / http://www.atmel.com/



 The information contained in this email message may be privileged,
 confidential and/or protected from unauthorized disclosure. If you are not
 the intended recipient, any dissemination, distribution or copying is
 strictly prohibited. Please immediately notify the sender by reply if you
 received this email in error. Thank you for your cooperation.





 -
 To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
 For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org

-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org


-
To unsubscribe, e-mail: docbook-apps-unsubscr...@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-h...@lists.oasis-open.org



[docbook-apps] Footer background color for pront output

2013-06-26 Thread Alan Oehler
Hi,

I'm having some trouble trying to figure out how to set up my footer for
print output to have its background color set. I can add it to the
footer.content.properties attribute set, but that only sets the background
color of the displayed text - kind of like in HTML setting the background
color attribute for the text in a div rather than for the div itself.  In
other words, I want the entire lower 15% or so of the printed page to have
a different background color than the rest of the page.

Any hints?

Thanks!

-- 
Alan C. Oehler
Senior Technical Writer | Instart Logic
M: 650.504.7003
www.instartlogic.com