OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

docbook message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: RE: [docbook] docbook with style info


A point to consider: one of the benefits of using DocBook is that you can mark up your content semantically. So instead of doing <b>error.log</b> you can do <filename>error.log</filname>. That way, when, as often happens, your company is bought by some larger company and it turns out that the style at the new company is to make filenames monospace, you can just change your customization layer and have the old content immediately have the formatting of the new company. I only use the emphasis element when I <emphasis>really</emphasis> want to emphasize some point. Otherwise, I try to use something more semantic. 

David

> -----Original Message-----
> From: A. Black [mailto:xuvt99@gmail.com] 
> Sent: Monday, October 12, 2009 1:08 PM
> To: Scott Hudson
> Cc: docbook@lists.oasis-open.org
> Subject: Re: [docbook] docbook with style info
> 
> Thanks. I own Stayton's book and it was after reading the 
> relevant sections that I thought I would ask if anyone has 
> already prepared a stylesheet with the indicated 
> functionality.  If the answer is no then certainly I will 
> look into those sections more but am still hoping it exists.
> 
> On Mon, Oct 12, 2009 at 12:15 PM, Scott Hudson 
> <scott.hudson@flatironssolutions.com> wrote:
> > Well, bold and strong are supported, and the default formatting for 
> > emphasis is italic (or em).
> >
> > There is also documentation for how to customize this 
> further. See Bob 
> > Stayton's excellent DocBook XSL book:
> >
> > http://www.sagehill.net/docbookxsl/CustomInlines.html
> > http://www.sagehill.net/docbookxsl/UsingCSS.html
> >
> > Fonts are handled differently:
> > http://www.sagehill.net/docbookxsl/PrintCustomEx.html#RootProperties
> > http://www.sagehill.net/docbookxsl/AddFont.html#ConfigureFonts
> >
> > Best regards,
> >
> > --Scott Hudson
> > Senior XML Architect
> > http://www.flatironssolutions.com
> >
> >
> > A. Black wrote:
> >>
> >> Thanks (and also thanks to Marvin).
> >>
> >> Does there exist such a stylesheet as you mention already 
> available 
> >> off-the-shelf with all the style elements such as bold, underline, 
> >> italics, colors, fonts, font sizes, etc. already built in and not 
> >> just italics, bold and strikethrough?  Surely I can't be the first 
> >> person with this problem.
> >>
> >> On Mon, Oct 12, 2009 at 11:34 AM, David Cramer 
> <dcramer@motive.com> wrote:
> >>>
> >>> Yes:
> >>>
> >>> <para><emphasis role="bold">This</emphasis> appears in 
> bold.</para>
> >>>
> >>> You can also do role="underline" and role="strikethrough" (or 
> >>> customize the template <xsl:template match="emphasis"> in 
> inline.xsl 
> >>> if you need more).
> >>>
> >>> David
> >>>
> >>>> -----Original Message-----
> >>>> From: A. Black [mailto:xuvt99@gmail.com]
> >>>> Sent: Monday, October 12, 2009 10:30 AM
> >>>> To: docbook@lists.oasis-open.org
> >>>> Subject: [docbook] docbook with style info
> >>>>
> >>>> I have to reproduce some documents that don't 
> necessarily make any 
> >>>> sense from a consistent style viewpoint.  Is there anything like 
> >>>> docbook but that allows one to include style information 
> right in 
> >>>> the main document.  It should produce xml fo.
> >>>>
> >>>> e.g.
> >>>>
> >>>> <para><bold>This</bold> appears in bold.</para>
> >>>>
> >>>> Thanks.
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: docbook-unsubscribe@lists.oasis-open.org
> For additional commands, e-mail: docbook-help@lists.oasis-open.org
> 
> 


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]