Solved

XMLTemplater and user parameter replacements

  • 3 February 2023
  • 2 replies
  • 5 views

Userlevel 1
Badge +22

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.

icon

Best answer by lifalin2016 3 February 2023, 11:41

View original

2 replies

Userlevel 1
Badge +22

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 ?

Userlevel 1
Badge +21

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

Reply