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

This should cover W3C XML Schema, Relax NG and DTD related problems.
roopesh79
Posts: 26
Joined: Fri Jul 29, 2022 9:55 am

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

Post 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
tavy
Posts: 365
Joined: Thu Jul 01, 2004 12:29 pm

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

Post 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
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Radu
Posts: 9059
Joined: Fri Jul 09, 2004 5:18 pm

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

Post 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
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
Post Reply