Page 1 of 1

chunk base.dir parameter (dynamic ?)

Posted: Fri Aug 20, 2004 3:38 pm
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.

Posted: Sat Aug 21, 2004 4:57 am
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

Posted: Mon Aug 23, 2004 10:51 am
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

Posted: Mon Aug 23, 2004 12:44 pm
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

Posted: Mon Aug 23, 2004 8:44 pm
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.

Posted: Tue Aug 24, 2004 12:28 am
by george
Exactly.

Best Regards,
George

Posted: Mon Feb 07, 2005 4:28 pm
by smouge
Thanks a lot, works very well