chunk base.dir parameter (dynamic ?)

Having trouble installing Oxygen? Got a bug to report? Post it all here.
smouge
Posts: 7
Joined: Fri Aug 20, 2004 3:27 pm

chunk base.dir parameter (dynamic ?)

Post by smouge »

Can I suse a macro to substitute the base.dir value for the XSLT processor?

Example:

Currently using oxygen under windows under c:\program files\oxygen\

I want to make chunk html files

source is in m:\test\car1

OUtput chunk I want to put in M:\test\car1\chunked\

So I set the parameter base.dir to m:\test\car1\chunked in the edit scenario window.

However If I wnat to make other documentation for
m:\test\car2, I have to update this parameter.

Isn't it possible to use a kind of macro so I can set the base.dir to ${cfd}\chunked\ ?


Or mayber here is another solution?

When working with many documents in different directories it becomes clumbersome to update everytime the parrameter value of base.dir by hand.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Currently macros are not supported in the parameter values.
All you can do right now is to duplicate the scenario and set the parameter to the desired value. Setting names to scenarios like below for instance will make the scenario selection easy:

Chunk to M:\test\car1\chunked\
Chunk to M:\test\car2\chunked\

Best Regards,
George
smouge
Posts: 7
Joined: Fri Aug 20, 2004 3:27 pm

Post by smouge »

Thanks,

We even have different subdirectories depending on the output:

Chunk to M:\test\car1\chunked\
Html (onechunk) to to M:\test\car1\html\
Pdf to to M:\test\car1\pdf\ (done with output file parameter, this is ok, because path can be set relative to document path)

Chunk to M:\test\car2\chunked\
Html to to M:\test\car2\html\
Pdf to to M:\test\car2\pdf\


With many different projects we have to edit the scenario each time with new projects.

Have to little knowledge right know if something can be done with xslt if/then else clauses based on output type (chunked, onechunk, pdf) to make this easier.

Any help on this would be welcome
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Hi,

Only when you have chunks the output is specified with a parameter. Otherwise, in case of PDF or (X)HTML output the output location is defined by the output file location. There you can use macros, for html for instance you can use:
${cfd}/html/${cfn}.html
and for PDF
${cfd}/pdf/${cfn}.pdf

I also added the support for macros inside parameter values on our bugzilla.

Best Regards,
George
smouge
Posts: 7
Joined: Fri Aug 20, 2004 3:27 pm

Post by smouge »

Yes we only have this with the chunked or onechunked html

Sorry I didn't follow you, what do you mean with "our bugzilla"? It means that is has become a "todo" item for a next version?
Would be great.
george
Site Admin
Posts: 2095
Joined: Thu Jan 09, 2003 2:58 pm

Post by george »

Exactly.

Best Regards,
George
smouge
Posts: 7
Joined: Fri Aug 20, 2004 3:27 pm

Post by smouge »

Thanks a lot, works very well
Post Reply