Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > XML > DocBook: Pass DocBook-Path to Stylesheet

Reply
Thread Tools

DocBook: Pass DocBook-Path to Stylesheet

 
 
tthunder@gmx.de
Guest
Posts: n/a
 
      11-26-2007
Hi @all,

I have a very simple use case here, but I cannot get any answer.

I want to publish/provide a customized XSL Stylesheet for DocBook
Users. The stylesheet defines variables for the DocBook Stylesheets,
e.g.

<xsl:variable name="html.stylesheet.type">text/css</xsl:variable>
<xsl:variable name="html.stylesheet" select="mystyle.css'"></
xsl:variable>

and customizes a little bit.

My stylesheet must include the official DocBook XSL Stylesheets. Very
simple:

<xsl:import href="SOME_PATH/docbook/fo/docbook.xsl"/>

You can see the problem here! SOME_PATH is different for each user,
and I don't want the user to edit the file. What to do? Environment
variables don't work, Param, Variables cannot be used within import. I
think, that there is no preprocessor for XSL? etc.

Is there any feasible way?

Thanks in advance!
Kirsten
 
Reply With Quote
 
 
 
 
Joseph Kesselman
Guest
Posts: n/a
 
      11-27-2007
wrote:
> there is no preprocessor for XSL?


Sure there is, if you want it: Stylesheets are XML, so you can use XSLT
to style them. I published a two-part article on DeveloperWorks which
used that idea to develop a stylesheet debugging mechanism; you could
use the same approach to preconfigure this import.

Or, in some XSLT processors, you could use a single URI but plug in a
Resolver which replaces that URI with one more appropriate for that user.

Or you could put the stylesheet on the web somewhere (if it isn't
already there) and point the import at that.

Or...




--
Joe Kesselman / Beware the fury of a patient man. -- John Dryden
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Firefox and XSLT (local stylesheet works, server-based stylesheet fails) David Blickstein XML 14 10-15-2005 11:27 PM
xml:stylesheet use in document with multiple stylesheet options David Blickstein XML 3 08-02-2005 03:10 PM
have a stylesheet generate another stylesheet based on XML? Steven An XML 1 11-23-2004 01:07 PM
Stylesheet referanse i stylesheet =?ISO-8859-1?Q?J=F8rn_Tommy_Kinder=E5s?= XML 3 07-04-2004 03:16 PM
Pass file name parameter to xsl stylesheet Luke Airig XML 1 12-29-2003 02:30 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57