Re: [docbook-apps] How to set up profiling in customization layer?

2009-09-30 Thread Bergfrid Skaara
I'm sorry but I cant. Our documentation is classified and subject to NDA
(nondisclosure agreement).

Bergfrid Skaara

On Wed, Sep 30, 2009 at 10:07 AM, Camille Bégnis  wrote:

> Ah well, could you provide a minimal (XML+XSL) sample (on
> http://docbook.pastebin.ca/ for example) that shows the issue?
>
> Camille.
>
> Bergfrid Skaara wrote:
> > ofcourse... I should have thought of that. But no, adding inner quotes
> > did not do any difference
> >
> > Best Regards,
> > Bergfrid Skaara
> >
> > On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis   > > wrote:
> >
> > Hello,
> >
> > 
> >
> > Will try to select a "None" element. Try this instead:
> >
> > 
> >
> > With the word 'None' into simple quotes so it's taken as a
> > string I
> > was caught a number of times on this :-)
> >
> > Camille.
> >
> > Bergfrid Skaara wrote:
> > > Hi,
> > > I'm trying to introduce profiling to the following scenario, so far
> > > without success:
> > >
> > > DocBook 5, modular with xincludes and olinks. Have unique xml:id
> and
> > > profiling attributes set
> > > XSL customization layer which imports fo/profile-docbook.xsl
> > > oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets
> > 1.75.1
> > >
> > > problem:
> > > I have ... and add  > > name="profile.audience" select="None"> to my cust.layer
> > > and the generated PDF is not filtered (everything is included).
> Both
> > > validation and transformation are successfull and
> > > fo/profile-docbook.xsl is read at processing. It seems like the
> > > profile param is ignored.
> > >
> > > I believe I've followed the instructions in the book to the letter,
> > > but clearly I must be missing something. Suggestions?
> > >
> > > Best regards,
> > > Bergfrid Skaara
> >
> >
>


Re: [docbook-apps] CSS background image missing in CHM

2009-09-30 Thread Richard Quadling
2009/9/30 Bob Stayton :
> This will require a customization.  You could supply the image filename(s)
> with a stylesheet parameter, and then customize the templates that generate
> the list.  In htmlhelp/htmlhelp-common.xsl there is a template named
> 'hhp.main', and starting on this line it generates the image list:
>
> 
>
> You'll have to trace through the process and figure out how to add your
> extra images to the list by customizing that template.
>
> Bob Stayton
> Sagehill Enterprises
> b...@sagehill.net
>
>
>
> - Original Message -
> From: Ken Morse
> To: DocBook Apps
> Sent: Wednesday, September 30, 2009 12:54 PM
> Subject: Re: [docbook-apps] CSS background image missing in CHM
> We could do that but the I believe the hhp file is rebuilt from scratch
> every time the stylesheet process is run; it would be better if there was
> some other way to add image files.
>
> Ken
>
>
> On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling 
> wrote:
>
>>
>> Assuming that the hhp file is in the same directory as the images
>> directory, then you can add ...
>>
>> images/bg-side.png
>>
>> to the [Files] section of the hhp file.
>>
>> You can do this via the hhw.exe or by editing the plain text hhp file.
>>
>> Richard.
>>
>> --
>> -
>> Richard Quadling
>> "Standing on the shoulders of some very clever giants!"
>> EE : http://www.experts-exchange.com/M_248814.html
>> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
>> ZOPA : http://uk.zopa.com/member/RQuadling
>
>

A hack option could be to add something like ...



to a page. Messy.


-- 
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-
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] merging index entries

2009-09-30 Thread Tim Arnold
Hi,
I'm using the eclipse index.xsl code to generate a slightly customized xml 
format index. That is working fine, but the entries with identical primary 
terms need to be merged into a single entry.
For example, these two entries should be merged into one:


  
  

  


  
  

  

to look like this:

  
  

  
  

  



Can someone point me to some documentation or example code to do this merging?
thanks,
--Tim Arnold




-
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] CSS background image missing in CHM

2009-09-30 Thread Bob Stayton
This will require a customization.  You could supply the image filename(s) with 
a stylesheet parameter, and then customize the templates that generate the 
list.  In htmlhelp/htmlhelp-common.xsl there is a template named 'hhp.main', 
and starting on this line it generates the image list:



You'll have to trace through the process and figure out how to add your extra 
images to the list by customizing that template.

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


  - Original Message - 
  From: Ken Morse 
  To: DocBook Apps 
  Sent: Wednesday, September 30, 2009 12:54 PM
  Subject: Re: [docbook-apps] CSS background image missing in CHM


  We could do that but the I believe the hhp file is rebuilt from scratch every 
time the stylesheet process is run; it would be better if there was some other 
way to add image files.

  Ken



  On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling  
wrote:


Assuming that the hhp file is in the same directory as the images
directory, then you can add ...

images/bg-side.png

to the [Files] section of the hhp file.

You can do this via the hhw.exe or by editing the plain text hhp file.

Richard.

--
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling




Re: [docbook-apps] CSS background image missing in CHM

2009-09-30 Thread Ken Morse
We could do that but the I believe the hhp file is rebuilt from scratch
every time the stylesheet process is run; it would be better if there was
some other way to add image files.

Ken


On Wed, Sep 30, 2009 at 2:44 PM, Richard Quadling
wrote:


> Assuming that the hhp file is in the same directory as the images
> directory, then you can add ...
>
> images/bg-side.png
>
> to the [Files] section of the hhp file.
>
> You can do this via the hhw.exe or by editing the plain text hhp file.
>
> Richard.
>
> --
> -
> Richard Quadling
> "Standing on the shoulders of some very clever giants!"
> EE : http://www.experts-exchange.com/M_248814.html
> Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
> ZOPA : http://uk.zopa.com/member/RQuadling
>


Re: [docbook-apps] CSS background image missing in CHM

2009-09-30 Thread Richard Quadling
2009/9/30 Ken Morse :
> Hello,
>
> I'm using the 1.7.20 htmlhelp stylesheets to build a .CHM (HTML Help) file.
> Recently I added a background image via the separate CSS file:
>
> body {
> ...
> background: #fff url(images/bg-side.png) repeat-y;
> ...
> }
>
> Even though I have the htmlhelp.enumerate.images option turned on though,
> the background image is not included in the either the generated hhp file
> nor the chm file. I suspect the css file is not searched for references to
> graphics files. Has anyone found a way to work around this? Perhaps some
> method to give an additional list of graphics files that should be included?
>
> Thanks,
> Ken
>
>

Assuming that the hhp file is in the same directory as the images
directory, then you can add ...

images/bg-side.png

to the [Files] section of the hhp file.

You can do this via the hhw.exe or by editing the plain text hhp file.

Richard.

-- 
-
Richard Quadling
"Standing on the shoulders of some very clever giants!"
EE : http://www.experts-exchange.com/M_248814.html
Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731
ZOPA : http://uk.zopa.com/member/RQuadling

-
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] CSS background image missing in CHM

2009-09-30 Thread Ken Morse
Hello,

I'm using the 1.7.20 htmlhelp stylesheets to build a .CHM (HTML Help) file.
Recently I added a background image via the separate CSS file:

body {
...
background: #fff url(images/bg-side.png) repeat-y;
...
}

Even though I have the *htmlhelp.enumerate.images* option turned on though,
the background image is not included in the either the generated hhp file
nor the chm file. I suspect the css file is not searched for references to
graphics files. Has anyone found a way to work around this? Perhaps some
method to give an additional list of graphics files that should be included?

Thanks,
Ken


Re: [docbook-apps] Table numbering with docbook 1.74.3 on PDF and HTML report.

2009-09-30 Thread Bob Stayton
One correction.  In the "pchap" selection, that should be 
select="ancestor::section[1]" to select only the closest ancestor section.

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


  - Original Message - 
  From: Bob Stayton 
  To: Bela Patel ; docbook-apps@lists.oasis-open.org 
  Sent: Wednesday, September 30, 2009 9:02 AM
  Subject: Re: [docbook-apps] Table numbering with docbook 1.74.3 on PDF and 
HTML report.


  Hi,
  The number labels are generated by applying templates to the table element in 
mode="label.markup".  The default template is in common/labels.xsl and works 
for table, figure, and example:

  



  

  



  

  
  

  
  
  

  
  

  

  

  

  You can copy this to your customization layer and change it to match="table" 
to only affect tables.  Then a couple more changes are needed.

  The variable "pchap" is the ancestor element whose number label becomes the 
prefix for the table number. Change the variable pchap selection to 
"ancestor::section".  And then change the first xsl:number so the "from" 
attribute is "section" instead of "chapter|appendix", so that the table 
numbering restarts in each section. That should do it.

  You might need to make further improvements to handle the case of a table 
contained in a chapter before the first section, though.

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


- Original Message - 
From: Bela Patel 
To: docbook-apps@lists.oasis-open.org 
Sent: Wednesday, September 30, 2009 8:35 AM
Subject: [docbook-apps] Table numbering with docbook 1.74.3 on PDF and HTML 
report.


Hi,

I am using docbook version 1.74.3. 
Currently I am getting table number on my HTML/PDF report as 
(ChapterNumber).1, (ChapterNumber).2, (ChapterNumber).3 ... and so on  

For example: I have "Chapter 2" and under it I have section number 2.3.2. 
Following is how table numbers are listed curently on my HTML report (table 
2.1, table 2.3 and table 2.3). 

Chapter 2
2.3.2 Report Trees
Table 2.1 Dec1Tree

  Data Type
 Length
 
  Numeric
 3
 

Table 2.2 Dec2Tree

  Data Type
 Length
 
  Numeric
 3
 

Table 2.3 Dec3Tree

  Data Type
 Length
 
  Numeric
 3
 




I want the table numbers starting with the section number above it instead 
on starting with the Chapter number above it.
For example: I want the Table number as (Table 2.3.2.1, Table 2.3.2.2 and 
Table 2.3.2.3) shown below.

Chapter 2
2.3.2 Report Trees
Table 2.3.2.1 Dec1Tree

  Data Type
 Length
 
  Numeric
 3
 

Table 2.3.2.2 Dec2Tree

  Data Type
 Length
 
  Numeric
 3
 

Table 2.3.2.3 Dec3Tree

  Data Type
 Length
 
  Numeric
 3
 




How can I achieve it?



Thanks,

BRAMANI.


Re: [docbook-apps] Table numbering with docbook 1.74.3 on PDF and HTML report.

2009-09-30 Thread Bob Stayton
Hi,
The number labels are generated by applying templates to the table element in 
mode="label.markup".  The default template is in common/labels.xsl and works 
for table, figure, and example:


  

  

  

  

  

  


  



  


  

  

  


You can copy this to your customization layer and change it to match="table" to 
only affect tables.  Then a couple more changes are needed.

The variable "pchap" is the ancestor element whose number label becomes the 
prefix for the table number. Change the variable pchap selection to 
"ancestor::section".  And then change the first xsl:number so the "from" 
attribute is "section" instead of "chapter|appendix", so that the table 
numbering restarts in each section. That should do it.

You might need to make further improvements to handle the case of a table 
contained in a chapter before the first section, though.

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


  - Original Message - 
  From: Bela Patel 
  To: docbook-apps@lists.oasis-open.org 
  Sent: Wednesday, September 30, 2009 8:35 AM
  Subject: [docbook-apps] Table numbering with docbook 1.74.3 on PDF and HTML 
report.


  Hi,

  I am using docbook version 1.74.3. 
  Currently I am getting table number on my HTML/PDF report as 
(ChapterNumber).1, (ChapterNumber).2, (ChapterNumber).3 ... and so on  

  For example: I have "Chapter 2" and under it I have section number 2.3.2. 
Following is how table numbers are listed curently on my HTML report (table 
2.1, table 2.3 and table 2.3). 

  Chapter 2
  2.3.2 Report Trees
  Table 2.1 Dec1Tree

Data Type
   Length
   
Numeric
   3
   

  Table 2.2 Dec2Tree

Data Type
   Length
   
Numeric
   3
   

  Table 2.3 Dec3Tree

Data Type
   Length
   
Numeric
   3
   




  I want the table numbers starting with the section number above it instead on 
starting with the Chapter number above it.
  For example: I want the Table number as (Table 2.3.2.1, Table 2.3.2.2 and 
Table 2.3.2.3) shown below.

  Chapter 2
  2.3.2 Report Trees
  Table 2.3.2.1 Dec1Tree

Data Type
   Length
   
Numeric
   3
   

  Table 2.3.2.2 Dec2Tree

Data Type
   Length
   
Numeric
   3
   

  Table 2.3.2.3 Dec3Tree

Data Type
   Length
   
Numeric
   3
   




  How can I achieve it?



  Thanks,

  BRAMANI.


[docbook-apps] Table numbering with docbook 1.74.3 on PDF and HTML report.

2009-09-30 Thread Bela Patel
Hi,

I am using docbook version 1.74.3.
Currently I am getting table number on my HTML/PDF report as
(ChapterNumber).1, (ChapterNumber).2, (ChapterNumber).3 ... and so on
**
*For example*: I have "Chapter 2" and under it I have section number 2.3.2.
Following is how table numbers are listed curently on my HTML report (table
2.1, table 2.3 and table 2.3).
**
*Chapter 2*
*2.3.2 Report Trees*

*Table 2.1 Dec1Tree*

*Data Type*

*Length*

Numeric

3

*Table 2.2 Dec2Tree*

*Data Type*

*Length*

Numeric

3

*Table 2.3 Dec3Tree*

  *Data Type*

*Length*

Numeric

3


*I want the table numbers starting with the section number above it instead
on starting with the Chapter number above it.*
*For example:* I want the Table number as (Table 2.3.2.1, Table 2.3.2.2 and
Table 2.3.2.3) shown below.
*
Chapter 2
*
* 2.3.2 Report Trees

Table 2.3.2.1 Dec1Tree

Data Type

Length

Numeric

3

Table 2.3.2.2 Dec2Tree

Data Type

Length

Numeric

3

Table 2.3.2.3 Dec3Tree

  Data Type

Length

Numeric

3



How can I achieve it?



Thanks,

BRAMANI.
*


Re: [docbook-apps] How to set up profiling in customization layer?

2009-09-30 Thread Camille Bégnis
Ah well, could you provide a minimal (XML+XSL) sample (on
http://docbook.pastebin.ca/ for example) that shows the issue?

Camille.

Bergfrid Skaara wrote:
> ofcourse... I should have thought of that. But no, adding inner quotes
> did not do any difference
>  
> Best Regards,
> Bergfrid Skaara
>
> On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis  > wrote:
>
> Hello,
>
> 
>
> Will try to select a "None" element. Try this instead:
>
> 
>
> With the word 'None' into simple quotes so it's taken as a
> string I
> was caught a number of times on this :-)
>
> Camille.
>
> Bergfrid Skaara wrote:
> > Hi,
> > I'm trying to introduce profiling to the following scenario, so far
> > without success:
> >
> > DocBook 5, modular with xincludes and olinks. Have unique xml:id and
> > profiling attributes set
> > XSL customization layer which imports fo/profile-docbook.xsl
> > oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets
> 1.75.1
> >
> > problem:
> > I have ... and add  > name="profile.audience" select="None"> to my cust.layer
> > and the generated PDF is not filtered (everything is included). Both
> > validation and transformation are successfull and
> > fo/profile-docbook.xsl is read at processing. It seems like the
> > profile param is ignored.
> >
> > I believe I've followed the instructions in the book to the letter,
> > but clearly I must be missing something. Suggestions?
> >
> > Best regards,
> > Bergfrid Skaara
>
>
<>-
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] How to set up profiling in customization layer?

2009-09-30 Thread Bergfrid Skaara
ofcourse... I should have thought of that. But no, adding inner quotes did
not do any difference

Best Regards,
Bergfrid Skaara

On Tue, Sep 29, 2009 at 2:01 PM, Camille Bégnis  wrote:

> Hello,
>
> 
>
> Will try to select a "None" element. Try this instead:
>
> 
>
> With the word 'None' into simple quotes so it's taken as a string I
> was caught a number of times on this :-)
>
> Camille.
>
> Bergfrid Skaara wrote:
> > Hi,
> > I'm trying to introduce profiling to the following scenario, so far
> > without success:
> >
> > DocBook 5, modular with xincludes and olinks. Have unique xml:id and
> > profiling attributes set
> > XSL customization layer which imports fo/profile-docbook.xsl
> > oxygen XML Editor 10.3 with saxon6.5.5 and FOP0.95 stylesheets 1.75.1
> >
> > problem:
> > I have ... and add  > name="profile.audience" select="None"> to my cust.layer
> > and the generated PDF is not filtered (everything is included). Both
> > validation and transformation are successfull and
> > fo/profile-docbook.xsl is read at processing. It seems like the
> > profile param is ignored.
> >
> > I believe I've followed the instructions in the book to the letter,
> > but clearly I must be missing something. Suggestions?
> >
> > Best regards,
> > Bergfrid Skaara
>