← Prev in month ← Prev in thread
Next in thread → Next in month →

Re: [docbook-apps] FIXED: Draftmode image location

From
<>
Date
2011-05-25T20:48:25+00:00
ID
Thread
Re: [docbook-apps] FIXED: Draftmode image location
Thanks - however, you just illuminated a few issues:

 

I support both Windows and Linux with the same distro, so a sym link would 
not be an advantage. Yes, I could rename the directory every time I update, but 
then one must actually dig into the directory to find version information when 
needed.

 

I have version information in the scripts that create the documentation, 
but that could really junk up the command line passing it into XSLTPROC, but it 
could be done. 

 

So I have implemented this and it works

    <xsl:param 
name="draft.watermark.image">
    
<xsl:text>../../doctools/docbook-xsl-</xsl:text><xsl:value-of 
select="$VERSION"/><xsl:text>/images/draft.png</xsl:text>
    
</xsl:param>

 

Thanks for all of your ideas. They pushed me to the solution!

 

Regards,

Dean Nelson

 

In a message dated 5/25/2011 1:07:09 P.M. Pacific Daylight Time, 
 writes:

Hello, 
  

  
Another alternative that seems to work across versions of the stylesheets 
  as long as you have web access is to point to http://docbook.sourceforge.net/release/images/draft.png.

  

  
Regards,

  
Mark 

  

  
On Wed, May 25, 2011 at 9:40 PM, Barton Wright <> 
  wrote:

  
    

    

    
You could 
    set up a symbolic link in your ../../doctools/ directory. Name the symlink 
    docbook-xsl and have it always point to the latest docbook-xsl-version that 
    you’re using. 

    
 

    
Then 
    you:

    
-- always 
    select “../../doctools/docbook-xsl/images/draft.png” and never have to edit 
    the path

    
-- change 
    only the symlink to start using a new XSL version

    
 

    
This even 
    works nowadays on Windows 7, which has real symbolic links that you create 
    with the mklink command.

    
 

    

    

    
From:  
    [mailto:] 
Sent: Wednesday, May 25, 
    2011 3:19 PM
To: 
Subject: 
    [docbook-apps] Draftmode image location

    

    

    

    
 

    

    
All

    

    
 

    

    
1. Is there a 
    better way of accessing the draft.png file in stock docbook xsl tree from my 
    customization layer so I don't have to change the version number every time 
    I update the XSL to a new version?

    

    
 

    

    
   
    <xsl:param name="draft.watermark.image" 
    select="'../../doctools/docbook-xsl-1.76.1/images/images/draft.png'"/>

    

    
 

    

    
Could there 
    be a standard docbook-xsl version ENTITY that I can build a path 
    from?

    

    
Like 
    this?

    

    

    
   
    <xsl:param name="draft.watermark.image" 
    select="'../../doctools/&DOCBOOK_XSL_VERSION;/images/images/draft.png'"/>

    

    
2. Is there 
    are parameter that can be set, similar to base.dir, that points to the base 
    location of the stylesheets? Then the callout, draft image, and other 
    locations could be relative to that directory. 

    

    
 

    

    
How do other 
    folks get around this without hand tuning paths every time a version 
    changes?

    

    
 

    

    
 

    

    
 

    

    
Regards,

    

    
Dean 
    Nelson
← Prev in month ← Prev in thread
Next in thread → Next in month →