Variable Replacement In Document Template Not Working

Having trouble installing Oxygen? Got a bug to report? Post it all here.
cdecarlo
Posts: 1
Joined: Fri Aug 12, 2011 9:32 pm

Variable Replacement In Document Template Not Working

Post by cdecarlo »

Hi,

I'm trying to create a document template xsd file. I want to use variable replacement inside this template...for example in my schema declaration I want to do the following...(xml snippet to follow)

Code: Select all

xmlns="http://www.nycourts.gov/xml/ucms/datamodel/shared/servicedm/universal/task/inquiry/${cfn}
Whenever I create a new file using this template it does not actually replace the value of ${cfn} it just leaves that in the newly created file as the literal string ${cfn}.

Am I doing something wrong? I'm running Oxygen 12.2.0 inside Eclipse Indigo (3.7)
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Variable Replacement In Document Template Not Working

Post by Radu »

Hi,

We have a limitation and editor variables which are related to the location that the saved file will have on disk (like ${cf}, ${cdf}, ${cfn}, etc) are not expanded at all.

In the standalone version of Oxygen this limitation makes sense because the file is first created with a generic "Untitled.xml" name and then the user saves it on the local disk, but in Eclipse the user also chooses the place where the file will be saved so maybe in Eclipse we will be able to overcome this limitation. I will add an improvement request for this and update this post when we find a solution.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9449
Joined: Fri Jul 09, 2004 5:18 pm

Re: Variable Replacement In Document Template Not Working

Post by Radu »

Hi,

Just to update this thread, the issue was fixed in Oxygen 15.0.

Regards,
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply