cmarchand / gaulois-pipe

A XSLT pipelining solution
Mozilla Public License 2.0
9 stars 4 forks source link

Need of a pseudo variable to know the relative path of a source file #18

Closed cmarchand closed 7 years ago

cmarchand commented 7 years ago

When a source file is found via a <folder />, there is no way to know the relative path of the file to folder/@href

It'll be great to add a pseudo variable that we could use in a output, to reproduce the source directory structure in the output folder

cmarchand commented 7 years ago

Commit #040e584 solve this. Two new pseudo-variables are created :

It's now possible to have the same directory structure in output than in sources :

<output>
  <folder absolute="$[outputDir]/$[input-relative-dir]"/>
  <file name="$[input-name]"/>
</output>