docbook-apps

  • 1.  Relative path for highlight.xslthl.config

    Posted 11-21-2011 18:59
    Hi,

    I'm currently using an absolute path for the syntax highlighting
    configuration file. As I'm switching between computers back and forth I
    would like to make this relative.

    Currently:

    expression="file:///C:/Users/vogella/workspace/vogella/de.vogella.docbook.first/docbook-xsl-1.76.1/highlighting/xslthl-config.xml"
    />

    I did not manage to make the system accept a relative path. Can someone
    please share an example?

    Best regards, Lars
    --
    Lars
    http://www.vogella.de - Eclipse, Android and Java Tutorials
    http://www.twitter.com/vogella - Lars on Twitter



  • 2.  Re: [docbook-apps] Relative path for highlight.xslthl.config

    Posted 11-22-2011 06:04
    On 11/21/2011 06:59 PM, Lars Vogel wrote:
    > Hi,
    >
    > I'm currently using an absolute path for the syntax highlighting
    > configuration file. As I'm switching between computers back and forth I
    > would like to make this relative.
    >
    > Currently:
    >
    > > expression="file:///C:/Users/vogella/workspace/vogella/de.vogella.docbook.first/docbook-xsl-1.76.1/highlighting/xslthl-config.xml"
    > />
    >
    > I did not manage to make the system accept a relative path. Can someone
    > please share an example?

    I have the same problem, moving content from my disk to website.
    My only solution was to have a common (absolute) address to use
    in my case it was /dir/dir/file
    If you can be assured of having the file on the same disk, this
    solution will work for you. c: is redundant in a java world,
    as is the file:/// prefix.

    HTH


    regards

    --
    Dave Pawson
    XSLT XSL-FO FAQ.
    http://www.dpawson.co.uk




  • 3.  Re: [docbook-apps] Relative path for highlight.xslthl.config

    Posted 11-22-2011 10:24
    Hello Dave,

    thanks for the tip. This would also work but as an Apache Ant user, I think
    Jirkas tips fit better to my setup.

    Best regards, Lars

    2011/11/22 davep <davep@dpawson.co.uk>

    > On 11/21/2011 06:59 PM, Lars Vogel wrote:
    >
    >> Hi,
    >>
    >> I'm currently using an absolute path for the syntax highlighting
    >> configuration file. As I'm switching between computers back and forth I
    >> would like to make this relative.
    >>
    >> Currently:
    >>
    >> >> expression="file:///C:/Users/**vogella/workspace/vogella/de.**
    >> vogella.docbook.first/docbook-**xsl-1.76.1/highlighting/**
    >> xslthl-config.xml"
    >> />
    >>
    >> I did not manage to make the system accept a relative path. Can someone
    >> please share an example?
    >>
    >
    > I have the same problem, moving content from my disk to website.
    > My only solution was to have a common (absolute) address to use
    > in my case it was /dir/dir/file
    > If you can be assured of having the file on the same disk, this
    > solution will work for you. c: is redundant in a java world,
    > as is the file:/// prefix.
    >
    > HTH
    >
    >
    > regards
    >
    > --
    > Dave Pawson
    > XSLT XSL-FO FAQ.
    > http://www.dpawson.co.uk
    >
    >
    > ------------------------------**------------------------------**---------
    > To unsubscribe, e-mail: docbook-apps-unsubscribe@**lists.oasis-open.org<docbook-apps-unsubscribe@lists.oasis-open.org>
    > For additional commands, e-mail: docbook-apps-help@lists.oasis-**open.org<docbook-apps-help@lists.oasis-open.org>
    >
    >


    --
    Lars
    http://www.vogella.de - Eclipse, Android and Java Tutorials
    http://www.twitter.com/vogella - Lars on Twitter



  • 4.  Re: [docbook-apps] Relative path for highlight.xslthl.config

    Posted 11-22-2011 11:03
    [Opps, forgot to reply-all...]

    On 21.11.2011 19:59, Lars Vogel wrote:

    > Currently:
    >
    > > expression="file:///C:/Users/vogella/workspace/vogella/de.vogella.docbook.first/docbook-xsl-1.76.1/highlighting/xslthl-config.xml"
    > />
    >
    > I did not manage to make the system accept a relative path. Can someone
    > please share an example?

    I don't remember details, but there were some problems with relative
    paths which I don't recall now. But as it seems that you are using Ant,
    you can use its features to convert relative path into absolute URL,
    something like


    <property name="xslthl.config" value=".../xslthl-config.xml"/>
    <makeurl file="${xslthl.config}" property="xslthl.config.url"/>

    and then

    ...


    Jirka

    --
    ------------------------------------------------------------------
    Jirka Kosek e-mail: jirka@kosek.cz 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
    ------------------------------------------------------------------