Huditsch, Roman (LNG-VIE) wrote:
> 
> Once again I have a very special requirement...

Special requirements are our speciality.



> I would need to pass the current file path ofthe document being edited,
> but witohout the drive letter on Windows.
> R:\Lieferungen\Legislations\Gesetze\verlinkt\2_waeg_v0.xml
> should become 
> \Lieferungen\Legislations\Gesetze\verlinkt\2_waeg_v0.xml
> 
> Is there some kind of a substring functionality somewhere?

In a macro, use <get> or <set>. Example:

<get expression="substring('%D', 3)" />

(3 because in XPath the index of first character is 1 and not 0.)

See
http://lupo/xmleditor/_distrib/doc/commands/xpath_get.html
http://lupo/xmleditor/_distrib/doc/commands/macro_vars.html
http://www.w3.org/TR/xpath#section-String-Functions



> Or would I need to integrate an own java class for doing this?

No, this is probably not needed.

Reply via email to