Skip to main content
Solved

XMLTemplater and user parameter replacements

  • February 3, 2023
  • 2 replies
  • 32 views

lifalin2016
Supporter
Forum|alt.badge.img+38

Hi list.

I got a curious error in a workspace, which I needed to update.

I needed to update some schema references (from .../1/... to .../2/...) and thought that it was a good idea to create a private user text parameter, containing the "2" needing to be inserted.

However, this yielded a strange error when applied to the root expression in my XMLTemplater. Something like this: "... can not expand namespace prefix to URI"

Is it correct that XMLTemplater cannot use user parameters replacements ?

And if so, why not ?

Aren't these applied to whatever parameters a transformer may have, prior to its execution ?

Cheers.

Best answer by lifalin2016

A potential work-around may be to create a variable with the root expression, and do the replacements there prior to using it in XMLTemplater.

Is this a viable work-around ?

This post is closed to further activity.
It may be an old question, an answered question, an implemented idea, or a notification-only post.
Please check post dates before relying on any information in a question or answer.
For follow-up or related questions, please post a new question or idea.
If there is a genuine update to be made, please contact us and request that the post is reopened.

2 replies

lifalin2016
Supporter
Forum|alt.badge.img+38
  • Author
  • Supporter
  • 592 replies
  • Best Answer
  • February 3, 2023

A potential work-around may be to create a variable with the root expression, and do the replacements there prior to using it in XMLTemplater.

Is this a viable work-around ?


ebygomm
Influencer
Forum|alt.badge.img+44
  • Influencer
  • 3422 replies
  • February 3, 2023

What happens if you create an attribute and set that to the value of the parameter and use that in your XML templater?