Page 1 of 1

Is there any way to get cms file path using schematron?

Posted: Thu Nov 17, 2022 9:32 am
by roopesh79
Hi team,
I am trying to get cms file path using scematron rules within Oxygen Author. When I use base-uri(), it returns only the checkout directory path. Is there any other method available to get the cms path?

Thanks in Advance
Roopesh

Re: Is there any way to get cms file path using schematron?

Posted: Fri Nov 18, 2022 6:36 pm
by tavy
Hello Roopesh,

Thanks for your feedback.
Unfortunately I cannot reproduce the behavior you describe. What version of Oxygen do you use? Can you send us some sample files to reproduce the problem? You can add them on the forum or you can send them to support@oxygenxml.com

Best Regards,
Octavian

Re: Is there any way to get cms file path using schematron?

Posted: Thu Nov 24, 2022 1:14 pm
by Radu
Hi Roopesh,

After receiving the details you sent via email:
What you get returned by the base-uri() method is the URL that Oxygen was instructed to open by the Bluestream connector.
Oxygen does not know of any other more CMS friendly path of the same resource. That title you see in the Oxygen main frame, it's possible the Bluestream connector uses our API to change the name of the file displayed there, but this is not something we control.
Even if Bluestream would have some Java API available to obtain that path, calling it from the XSLT code would be problematic in my opinion.

Regards,
Radu