Re: [docbook-apps] docbook article with cover

2013-02-10 Thread cristobal vio
thanks Bob!

I'm now using the 3rd alternative and works great

its the one that fitted best further customizations i made and somehow
formatting is better than in the 2nd alternative, maybe because of some
other stylesheet I imported before of the self-made customizations

once again, many thanks


2013/2/6 Cristobal Vio cr...@antica.cl

 thanks a lot!
 ill try one of those as soon as i can



 2013/2/4 Bob Stayton b...@sagehill.net

 **
 Hi Critobal,
 Although the DocBook stylesheet has empty placeholder templates named
 'front.cover' and 'back.cover', those are only called when processing a
 book element.

 I can think of three approaches to this problem.

 1.  Create a book that contains just a book title and an article, where
 the book title matches the article title. That's valid DocBook, but it
 might produce artifacts like a table of contents and verso title page that
 you would need to turn off in the XSL, neither of which is difficult.

 2.  Copy the template with match=d:article from fo/component.xsl to
 your customization layer, add a call to 'article.front.cover' before the
 main page-sequence, and write a template by that name that generates an
 fo:page-sequence prior to the main article page-sequence.  Something like:

 xsl:template match=d:article
   ...
   !-- add just this line --
   xsl:call-template name=article.front.cover/

   fo:page-sequence [existing sequence for the main article]
   ...
 /xsl:template

 and write this template:

 xsl:template name=article.front.cover
   xsl:call-template name=page.sequence
 xsl:with-param name=content
 [the fo:blocks that make up the content of the cover page]
 /xsl:with-param
   /xsl:call-template
 /xsl:template

 3.  The titlepage system for article automatically calls an empty
 placeholder template named 'article.titlepage.before.recto' that is called
 before the regular title page, but within the main page-sequence.  You
 could customize that template:

 xsl:template name=article.titlepage.before.recto
   [the fo:blocks that make up the content of the cover page]
   fo:block break-after=page/
 /xsl:template

 This one needs the forced page break after it because it is included in
 the main article page-sequence.

 In either case, the content needs to be specified.  The simplest would be
 to copy the article titlepage content:

 xsl:call-template name=article.titlepage.recto/

 If you need less than that, then copy just the contents of that template
 from fo/titlepage.templates.xsl to your customized template and remove the
 elements you don't want on the cover.

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

  *From:* Cristobal Vio cr...@antica.cl
 *Sent:* Monday, February 04, 2013 10:51 AM
 *To:* docbook-apps@lists.oasis-open.org
 *Subject:* [docbook-apps] docbook article with cover

 Hi there!

 I'm learning to use DocBook and I was trying to figure out how to make an
 article with coverpage... Or alternatively a book without the need of
 chapters (although i think I'd prefer the first thing) The xsl stylesheet
 scheme seems so flexible that I thought it must be possible... but i was
 lost in tons of sites on xsl stylesheet discussions...

 I will continue my search, but I thought maybe i could just ask you
 (since you are the one person that surely knows that already) if it was
 possible and maybe if you had the appropriate reference for me :)

 many, many thanks in advance,

 Cristóbal Vio


 Update:

 I've continued my search and it still isn't clear to me if I need to do a
 new xsl style or alter the dtd part concerning the article type.

 Still hoping you can answer.

 Thanks in advance,

 Cristóbal





Re: [docbook-apps] docbook article with cover

2013-02-06 Thread Cristobal Vio
thanks a lot!
ill try one of those as soon as i can



2013/2/4 Bob Stayton b...@sagehill.net

 **
 Hi Critobal,
 Although the DocBook stylesheet has empty placeholder templates named
 'front.cover' and 'back.cover', those are only called when processing a
 book element.

 I can think of three approaches to this problem.

 1.  Create a book that contains just a book title and an article, where
 the book title matches the article title. That's valid DocBook, but it
 might produce artifacts like a table of contents and verso title page that
 you would need to turn off in the XSL, neither of which is difficult.

 2.  Copy the template with match=d:article from fo/component.xsl to your
 customization layer, add a call to 'article.front.cover' before the main
 page-sequence, and write a template by that name that generates an
 fo:page-sequence prior to the main article page-sequence.  Something like:

 xsl:template match=d:article
   ...
   !-- add just this line --
   xsl:call-template name=article.front.cover/

   fo:page-sequence [existing sequence for the main article]
   ...
 /xsl:template

 and write this template:

 xsl:template name=article.front.cover
   xsl:call-template name=page.sequence
 xsl:with-param name=content
 [the fo:blocks that make up the content of the cover page]
 /xsl:with-param
   /xsl:call-template
 /xsl:template

 3.  The titlepage system for article automatically calls an empty
 placeholder template named 'article.titlepage.before.recto' that is called
 before the regular title page, but within the main page-sequence.  You
 could customize that template:

 xsl:template name=article.titlepage.before.recto
   [the fo:blocks that make up the content of the cover page]
   fo:block break-after=page/
 /xsl:template

 This one needs the forced page break after it because it is included in
 the main article page-sequence.

 In either case, the content needs to be specified.  The simplest would be
 to copy the article titlepage content:

 xsl:call-template name=article.titlepage.recto/

 If you need less than that, then copy just the contents of that template
 from fo/titlepage.templates.xsl to your customized template and remove the
 elements you don't want on the cover.

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

  *From:* Cristobal Vio cr...@antica.cl
 *Sent:* Monday, February 04, 2013 10:51 AM
 *To:* docbook-apps@lists.oasis-open.org
 *Subject:* [docbook-apps] docbook article with cover

 Hi there!

 I'm learning to use DocBook and I was trying to figure out how to make an
 article with coverpage... Or alternatively a book without the need of
 chapters (although i think I'd prefer the first thing) The xsl stylesheet
 scheme seems so flexible that I thought it must be possible... but i was
 lost in tons of sites on xsl stylesheet discussions...

 I will continue my search, but I thought maybe i could just ask you (since
 you are the one person that surely knows that already) if it was possible
 and maybe if you had the appropriate reference for me :)

 many, many thanks in advance,

 Cristóbal Vio


 Update:

 I've continued my search and it still isn't clear to me if I need to do a
 new xsl style or alter the dtd part concerning the article type.

 Still hoping you can answer.

 Thanks in advance,

 Cristóbal




[docbook-apps] docbook article with cover

2013-02-04 Thread Cristobal Vio
Hi there!

I'm learning to use DocBook and I was trying to figure out how to make an
article with coverpage... Or alternatively a book without the need of
chapters (although i think I'd prefer the first thing) The xsl stylesheet
scheme seems so flexible that I thought it must be possible... but i was
lost in tons of sites on xsl stylesheet discussions...

I will continue my search, but I thought maybe i could just ask you (since
you are the one person that surely knows that already) if it was possible
and maybe if you had the appropriate reference for me :)

many, many thanks in advance,

Cristóbal Vio


Update:

I've continued my search and it still isn't clear to me if I need to do a
new xsl style or alter the dtd part concerning the article type.

Still hoping you can answer.

Thanks in advance,

Cristóbal


Re: [docbook-apps] docbook article with cover

2013-02-04 Thread Bob Stayton
Hi Critobal,
Although the DocBook stylesheet has empty placeholder templates named 
'front.cover' and 'back.cover', those are only called when processing a book 
element.

I can think of three approaches to this problem. 

1.  Create a book that contains just a book title and an article, where the 
book title matches the article title. That's valid DocBook, but it might 
produce artifacts like a table of contents and verso title page that you would 
need to turn off in the XSL, neither of which is difficult.

2.  Copy the template with match=d:article from fo/component.xsl to your 
customization layer, add a call to 'article.front.cover' before the main 
page-sequence, and write a template by that name that generates an 
fo:page-sequence prior to the main article page-sequence.  Something like:

xsl:template match=d:article
  ...
  !-- add just this line --
  xsl:call-template name=article.front.cover/
  
  fo:page-sequence [existing sequence for the main article]
  ...
/xsl:template

and write this template:

xsl:template name=article.front.cover
  xsl:call-template name=page.sequence
xsl:with-param name=content
[the fo:blocks that make up the content of the cover page]
/xsl:with-param
  /xsl:call-template
/xsl:template 

3.  The titlepage system for article automatically calls an empty placeholder 
template named 'article.titlepage.before.recto' that is called before the 
regular title page, but within the main page-sequence.  You could customize 
that template:

xsl:template name=article.titlepage.before.recto
  [the fo:blocks that make up the content of the cover page]
  fo:block break-after=page/
/xsl:template

This one needs the forced page break after it because it is included in the 
main article page-sequence.

In either case, the content needs to be specified.  The simplest would be to 
copy the article titlepage content:

xsl:call-template name=article.titlepage.recto/

If you need less than that, then copy just the contents of that template from 
fo/titlepage.templates.xsl to your customized template and remove the elements 
you don't want on the cover.

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


From: Cristobal Vio 
Sent: Monday, February 04, 2013 10:51 AM
To: docbook-apps@lists.oasis-open.org 
Subject: [docbook-apps] docbook article with cover


Hi there!

I'm learning to use DocBook and I was trying to figure out how to make an 
article with coverpage... Or alternatively a book without the need of chapters 
(although i think I'd prefer the first thing) The xsl stylesheet scheme seems 
so flexible that I thought it must be possible... but i was lost in tons of 
sites on xsl stylesheet discussions... 


I will continue my search, but I thought maybe i could just ask you (since you 
are the one person that surely knows that already) if it was possible and maybe 
if you had the appropriate reference for me :)

many, many thanks in advance,


Cristóbal Vio



Update: 

I've continued my search and it still isn't clear to me if I need to do a new 
xsl style or alter the dtd part concerning the article type. 


Still hoping you can answer.


Thanks in advance,


Cristóbal



[docbook-apps] Docbook article

2007-09-12 Thread Dave Pawson

http://www.devx.com/Java/Article/35301

regards
--
Dave Pawson
XSLT, XSL-FO and Docbook FAQ
http://www.dpawson.co.uk


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook-apps] Docbook article

2007-09-12 Thread Camille Bégnis
Dave Pawson wrote:
 http://www.devx.com/Java/Article/35301

yes it got good coverage in news websites, good to see that DITA doesn't
get the exclusivity.

Camille.
begin:vcard
fn;quoted-printable:Camille B=C3=A9gnis
n;quoted-printable:B=C3=A9gnis;Camille
org:NeoDoc
adr:;;139 rue Philippe de Girard;Pertuis;;84120;France
email;internet:[EMAIL PROTECTED]
tel;work:+33.9.54.96.99.55
tel;fax:+33.9.59.96.99.55
tel;cell:+33.6.33.15.10.23
url:http://www.neodoc.biz
version:2.1
end:vcard


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: [docbook-apps] Docbook article

2007-09-12 Thread Ron Catterall
Title: Re: [docbook-apps] Docbook
article


Interesting article


http://www.devx.com/Java/Article/35301

On the first page I found:

Chapters are hierarchical; a chapter can contain
other chapters, and they can be nested
indefinitely.

Oh well, any publicity is better than none.
-- 

Ron Catterall, Phd, DSc



email: [EMAIL PROTECTED]
Prolongacion de Hidalgo 140



http://catterall.net/
San Felipe del Agua



 tel:
+52 951 520 1821
Oaxaca 68020
Mexico


 fax:
+1 530 348 8309



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: [docbook-apps] Docbook article

2007-09-12 Thread Jirka Kosek
Ron Catterall wrote:
 Interesting article

  http://www.devx.com/Java/Article/35301
 
 On the first page I found:
 
 Chapters are hierarchical; a chapter can contain other chapters, and they 
 can 
 be nested indefinitely.
 
 Oh well, any publicity is better than none.

They are also using obsolete (2003) XInclude namespace :-(

-- 
--
  Jirka Kosek  e-mail: [EMAIL PROTECTED]  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 member
--



signature.asc
Description: OpenPGP digital signature