Using XML Catalogs to resolve location of CSS files

I guess this is an enhancement request, since I can't seem to get it to work. I want to be able to specify the location of a CSS stylesheet using a URL, and then have it resolved to a local copy using an XML catalog. If I actually make the stylesheet available at the specified URL, Oxygen will find and use it. But if it can't find it on the web, it won't load a local copy even though the URL is mapped to the local file system in the catalog. I'm using an existing catalog with system and URI rewriting rules that work fine for loading schemas, and I have verified that the paths are all correct, so I'm assuming the Oxygen does not currently support resolving a CSS URL via a catalog. This would be a very useful feature for me, at least. Any chance of it making it into future editions? Thanks, Mark -- Mark Baker Analecta Communications Inc. 613-614-5881 www.analecta.com

Dear Mark, Thanks for letting us know. We did not hit this issue because all the CSS files we ship are either part of a framework and their references are relative to the framework location or they stay next to the XML file and their references are relative to that XML file location. I recorded this as an enhancement request and we will surely add this functionality in a future release. Best Regards, George -- George Cristian Bina <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/1/12 3:23 AM, Mark Baker wrote:
I guess this is an enhancement request, since I can't seem to get it to work. I want to be able to specify the location of a CSS stylesheet using a URL, and then have it resolved to a local copy using an XML catalog.
If I actually make the stylesheet available at the specified URL, Oxygen will find and use it. But if it can't find it on the web, it won't load a local copy even though the URL is mapped to the local file system in the catalog. I'm using an existing catalog with system and URI rewriting rules that work fine for loading schemas, and I have verified that the paths are all correct, so I'm assuming the Oxygen does not currently support resolving a CSS URL via a catalog.
This would be a very useful feature for me, at least. Any chance of it making it into future editions?
Thanks,
Mark

Hi Mark, Indeed as George said, CSS references in the XML are not resolved through XML Catalogs (and we can make an improvement on this). But I just wanted to be clear about one remark you made:
But if it can't find it on the web, it won't load a local copy even though the URL is mapped to the local file system in the catalog.
This is not the way in which an XML catalog works, if you set an XML catalog to resolve the referenced CSS URL to a local resource that local CSS resource will be the one which will be always used, there is no fallback which first tries to determine if a resource exists and then passes through the XML catalog to see if there is an existing local one. Regards, Radu Radu Coravu <oXygen/> XML Editor, Schema Editor and XSLT Editor/Debugger http://www.oxygenxml.com On 8/1/2012 3:23 AM, Mark Baker wrote:
I guess this is an enhancement request, since I can't seem to get it to work. I want to be able to specify the location of a CSS stylesheet using a URL, and then have it resolved to a local copy using an XML catalog.
If I actually make the stylesheet available at the specified URL, Oxygen will find and use it. But if it can't find it on the web, it won't load a local copy even though the URL is mapped to the local file system in the catalog. I'm using an existing catalog with system and URI rewriting rules that work fine for loading schemas, and I have verified that the paths are all correct, so I'm assuming the Oxygen does not currently support resolving a CSS URL via a catalog.
This would be a very useful feature for me, at least. Any chance of it making it into future editions?
Thanks,
Mark
participants (3)
-
George Cristian Bina
-
Mark Baker
-
Radu Coravu