Re: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS

2012-02-01 Thread Bob Stayton
OK, so the body_text thing was a separate issue relating to a missing XSL 
template in your customization, so I presume you fixed that.

Regarding the CSS, the Oxygen editor has its own CSS for displaying editable 
DocBook XML in the editor.  That CSS has selectors that match docbook element 
names as in your example.  Those CSS styles are only used in Oxygen, and do not 
propagate out to the HTML in any way.  This can be considered a good feature, 
because it allows you to define styles that are useful for editing purposes 
that are independent of the final output formats.

Those CSS styles will not work with HTML output, because the selectors match on 
DocBook element names, not HTML element names. You need another CSS file if you 
want to style the HTML output.

The DocBook XSL stylesheets support generating a CSS file during processing, 
deriving the styles from an XML file that contains a style element whose 
content is the CSS text you want in the CSS file.  The style element is there 
only to make the input file a well-formed XML file that can be processed with 
XSLT (since a CSS text file cannot be).  The stylesheet then generates a CSS 
text file from that input file.  See the reference pages for these params for 
more details:

http://docbook.sourceforge.net/release/xsl/current/doc/html/docbook.css.source.html

http://docbook.sourceforge.net/release/xsl/current/doc/html/custom.css.source.html

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


  - Original Message - 
  From: daniel.ke...@finaris.de 
  To: Bob Stayton ; docbook-apps@lists.oasis-open.org 
  Sent: Wednesday, February 01, 2012 6:27 AM
  Subject: Re: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS


  Hello Bob, 

  the error message you mentioned and the code you have stated is correct. 

  As an example: 

  chaptersect1title,
  sect1sect2title,
  sect2sect3title,
  chaptertitle
  {
font-size: 16pt;
text-align: left;
font-weight: bold;
padding-bottom: 24pt;
  } 


  As you can see we re-defined some default styles in our custom css 
stylesheet, the question is if we have to re-define them as well inside our 
custom xsl stylesheet for creating HTML in our custom style. 
  If so, do we need a css stylesheet at all or is it simply for the display in 
our Editor ( Oxygen). 



  Liebe Grüße 
  Daniel Keyes 


  F I N A R I S
  Financial Software Partner GmbH
  Sömmerringstr. 23
  60322 Frankfurt

  Fon: +49-(0)69-25498-16 
  Fax: +49-(0)69-25498-50
  E-Mail: daniel.ke...@finaris.de
  www: http://www.finaris.de
  www: http://www.rapidrep.com 


From:  Bob Stayton b...@sagehill.net  
To:  docbook-apps@lists.oasis-open.org, daniel.ke...@finaris.de  
Date:  31.01.2012 17:55  
Subject:  Re: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML 
using CSS 


--



  Hi Daniel, 
  I'm not clear what the problem is here.  You say you are generating HTML 
output, but your example in red is not an HTML output element, and you show the 
element markup itself as being displayed in the browser in red.   

  I suspect this is displaying an error-flagging feature of the DocBook XSL 
stylesheet.  When the stylesheet encounters an input element it does not 
recognize, it generates an error message along the lines of: 

   Element body_text in namespace '' encountered in chapter, but no 
template matches. 

  and then outputs the element as escaped markup in red, with the intent of 
making it visible so it can be fixed: 

  span style=color: redlt;body_textgt;testlt;/body_textgt;/span 

  Can you peek inside your HTML and see if that is what you are getting?  If 
so, then your customization layer needs to add a template with 
match=body_text to process that element. 

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


  - Original Message - 
  From: daniel.ke...@finaris.de 
  To: docbook-apps@lists.oasis-open.org 
  Sent: Tuesday, January 31, 2012 2:43 AM 
  Subject: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS 

  Hello, 

  currently we are having some problems customizing the respective XSL 
stylesheet for transforming our documents into Html ( and if it works also 
XHTML, webhelp etc.). 
  The problems seems to be that Oxygen in a way is blocking our CSS stylesheet, 
since it is obviously recognized by the XSL stylesheet: 

  xsl:template name=user.head.content 
 style type=text/css 
 css; 
 /style 
 /xsl:template 

  The code staed above is working out pretty fine, but still the result we we 
see is not what we configured. 


  As a consequence, the ouput is not what it should be. 

  Instead applying what was specified: 

  body_text{ 
font-family: Ariel; 
font-size: 10pt; 
line-height: 100%; 
text-align: left; 
padding-bottom: 12pt; 
  } 

  the result is body_texttest

[docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS

2012-01-31 Thread daniel . keyes
Hello,

currently we are having some problems customizing the respective XSL 
stylesheet for transforming our documents into Html ( and if it works also 
XHTML, webhelp etc.).
The problems seems to be that Oxygen in a way is blocking our CSS 
stylesheet, since it is obviously recognized by the XSL stylesheet:

xsl:template name=user.head.content
style type=text/css
css;
/style
/xsl:template

The code staed above is working out pretty fine, but still the result we 
we see is not what we configured.


As a consequence, the ouput is not what it should be.

Instead applying what was specified:

body_text{
   font-family: Ariel;
   font-size: 10pt;
   line-height: 100%;
   text-align: left;
   padding-bottom: 12pt;
}

the result is body_texttest/body_text . It is red instead of black.


Can anyone give me a hint what the problem is? Have I configured Oxygen 
incorrectly or is it the XSL Stylesheet.

Thanks! 

Daniel Keyes




===
Disclaimer
The information contained in this e - mail and any attachments
( together the message) is intended for the addressee only and may 
contain confidential and/or privileged information. If you have received
the message by mistake please delete it and notify the sender and do
not copy or distribute it or disclose its contents to anyone.

FINARIS Financial Software Partner GmbH
Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
Registered at Frankfurt/Main, HRB 52873

Managing Directors: 
Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
===

Re: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS

2012-01-31 Thread Stefan Hinz

  
  
Hi Daniel,

currently we are
having some problems
customizing the respective XSL stylesheet for transforming our
documents
into Html ( and if it works also XHTML, webhelp etc.).
  
  The problems seems to be that
Oxygen
in a way is blocking our CSS stylesheet, since it is obviously
recognized
by the XSL stylesheet:
  
  
  xsl:template
name="user.head.content"
  
  style
type="text/css"
  
   
css;
  
  /style
  
/xsl:template
  
  
  The code staed above is working
out
pretty fine, but still the result we we see is not what we
configured.
  
  
  
  As a consequence, the ouput is
not what
it should be.
  
  
  Instead applying what was specified:
  
  
  body_text{
  
   font-family: Ariel;
  

Are you sure about "Ariel"? I guess you'd want to use "Arial"
instead.
 font-size: 10pt;
  
   line-height: 100%;
  
   text-align: left;
  
   padding-bottom: 12pt;
  
  }
This says nothing about the font color used, does it?

  the result is body_texttest/body_text
  . It is red instead of
black.
  

I would guess that, since no color is specified for body_text,
the font color is inherited from an element higher in the document
tree (div?).

Hope this helps you get started with the debugging, because,
frankly, I don't fully understand what the problem is.

Cheers,

Stefan


  
  Can anyone give me a hint what
the problem
is? Have I configured Oxygen incorrectly or is it the XSL
Stylesheet.
  
  
  Thanks! 
  
  
  Daniel Keyes
  
  
  
  

===
Disclaimer
The information contained in this e - mail and any attachments
( together the "message") is intended for the addressee only
and may 
contain confidential and/or privileged information. If you have
received
the message by mistake please delete it and notify the sender
and do
not copy or distribute it or disclose its contents to anyone.

FINARIS Financial Software Partner GmbH
Smmerringstr. 23, 60322 Frankfurt/Main, Germany
Registered at Frankfurt/Main, HRB 52873

Managing Directors: 
Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bchle, Dipl. Inf.
Werner Mrkl
===



-- 
Cheers,

Stefan Hinz stefan.h...@oracle.com, MySQL Documentation Manager

Phone: +49-30-82702940, Fax: +49-30-82702941, http://dev.mysql.com/doc

ORACLE Deutschland B.V.  Co. KG
Registered Office: Riesstr. 25, 80992 Muenchen, Germany
Commercial Register: Local Court Of Munich, HRA 95603
Managing Director: Jrgen Kunz

General Partner: ORACLE Deutschland Verwaltung B.V.
Hertogswetering 163/167, 3543 AS Utrecht, Niederlande
Register Of Chamber Of Commerce: Midden-Niederlande, No. 30143697
Managing Directors: Alexander van der Ven, Astrid Kepper, Val Maher

  


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



Re: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS

2012-01-31 Thread Bob Stayton
Hi Daniel,
I'm not clear what the problem is here.  You say you are generating HTML 
output, but your example in red is not an HTML output element, and you show the 
element markup itself as being displayed in the browser in red.   

I suspect this is displaying an error-flagging feature of the DocBook XSL 
stylesheet.  When the stylesheet encounters an input element it does not 
recognize, it generates an error message along the lines of:

 Element body_text in namespace '' encountered in chapter, but no template 
matches.

and then outputs the element as escaped markup in red, with the intent of 
making it visible so it can be fixed:

span style=color: redlt;body_textgt;testlt;/body_textgt;/span

Can you peek inside your HTML and see if that is what you are getting?  If so, 
then your customization layer needs to add a template with match=body_text to 
process that element.

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


  - Original Message - 
  From: daniel.ke...@finaris.de 
  To: docbook-apps@lists.oasis-open.org 
  Sent: Tuesday, January 31, 2012 2:43 AM
  Subject: [docbook-apps] Oxygen XML Editor: Docbook XML to HTML using CSS


  Hello, 

  currently we are having some problems customizing the respective XSL 
stylesheet for transforming our documents into Html ( and if it works also 
XHTML, webhelp etc.). 
  The problems seems to be that Oxygen in a way is blocking our CSS stylesheet, 
since it is obviously recognized by the XSL stylesheet: 

  xsl:template name=user.head.content 
  style type=text/css 
  css; 
  /style 
  /xsl:template 

  The code staed above is working out pretty fine, but still the result we we 
see is not what we configured. 


  As a consequence, the ouput is not what it should be. 

  Instead applying what was specified: 

  body_text{ 
 font-family: Ariel; 
 font-size: 10pt; 
 line-height: 100%; 
 text-align: left; 
 padding-bottom: 12pt; 
  } 

  the result is body_texttest/body_text . It is red instead of black. 


  Can anyone give me a hint what the problem is? Have I configured Oxygen 
incorrectly or is it the XSL Stylesheet. 

  Thanks! 

  Daniel Keyes 




  ===
  Disclaimer
  The information contained in this e - mail and any attachments
  ( together the message) is intended for the addressee only and may 
  contain confidential and/or privileged information. If you have received
  the message by mistake please delete it and notify the sender and do
  not copy or distribute it or disclose its contents to anyone.

  FINARIS Financial Software Partner GmbH
  Sömmerringstr. 23, 60322 Frankfurt/Main, Germany
  Registered at Frankfurt/Main, HRB 52873

  Managing Directors: 
  Dipl. Inf. Hermann Friebel, Dipl. Ing. Kai Bächle, Dipl. Inf. Werner Märkl
  ===