cmarchand / gaulois-pipe

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

Accent in the name of souce file #25

Closed wondergarance closed 7 years ago

wondergarance commented 7 years ago

Hello,

I found that the gaulois-pipe doesn't accept the accent characters in the name of a source file. For example: ED Procédures collectives.xml I should rename it as ED Procedures collectives.xml

Qian

cmarchand commented 7 years ago

I've added a test case for this, GauloisPipeTest.testIssue25(), and I can not reproduce the problem. Could you please provide a test case so I could reproduce the problem.

Thanks in advance, Christophe

cmarchand commented 7 years ago

This is not a bug. In the sample you provided, you load sources with :

<folder href="." pattern="p{ASCII}+\.[xml|XML]$"/>

"é" does not match p{ASCII}

wondergarance commented 7 years ago

Thank you. I found the problem, it was in my config file of Gaulois-pipe. The regular expression for sources/folder/@pattern was \p{ASCII}+.(xml|XML)$, it doesn't accept accent in the name of the file. I corrected it to .+.(xml|XML)$