Hi, Florent:
You might need to capture the matches within the same rule.
Does it work to use add-query-param or set-var? as in:
http://docs.marklogic.com/guide/app-dev/XMLrewriter#id_80469
Erik Hennum
________________________________________
From: [email protected]
<[email protected]> on behalf of Florent Georges
<[email protected]>
Sent: Monday, December 11, 2017 10:11:19 AM
To: MarkLogic Developer Discussion
Subject: [MarkLogic Dev General] Rewriter - match-path - regex sub-matches
not set
Hi,
I am using a declarative XML rewriter. I have a problem with a rule, the
matches from the regex in match-path seem to be empty:
<!-- "resources" -->
<match-path matches="^/(css|fonts|img|js)/(.+)$">
<match-method any-of="GET">
<trace event="debug">0: $0, 1: $1, 2: $2</trace>
<dispatch>/web/$1/$2</dispatch>
</match-method>
</match-path>
And indeed, in the logs, I get the following:
2017-12-11 18:22:13.681 Info: [Event:id=debug] 0: , 1: , 2:
I feel like I am missing the obvious here. Any idea?
Regards,
--
Florent Georges
H2O Consulting
http://h2o.consulting/
_______________________________________________
General mailing list
[email protected]
Manage your subscription at:
http://developer.marklogic.com/mailman/listinfo/general