Lost ability to use xml catalog for xml-stylesheet PI?
Oxygen general issues.
-
- Posts: 2
- Joined: Wed Jan 25, 2023 1:20 pm
Lost ability to use xml catalog for xml-stylesheet PI?
I am new to this forum since I validate version 25.0 against my former version 16.1 and find that the ability of using the xml catalog for xml-stylesheet PI seems to be lost. I used to have this PI
<?xml-stylesheet type="text/css" href="-//ZSW//oxygen.css"?>
and was able to resolve it by my xml catalog, e.g. by
<rewriteURI uriStartString="-//ZSW//oxygen.css" rewritePrefix="custom/html/css/de/oxygen.css" />
Now with version 25.0 this does not resolve anymore and I tried various other options without success.
I appreciate any help on this.
Thx
<?xml-stylesheet type="text/css" href="-//ZSW//oxygen.css"?>
and was able to resolve it by my xml catalog, e.g. by
<rewriteURI uriStartString="-//ZSW//oxygen.css" rewritePrefix="custom/html/css/de/oxygen.css" />
Now with version 25.0 this does not resolve anymore and I tried various other options without success.
I appreciate any help on this.
Thx
-
- Posts: 9434
- Joined: Fri Jul 09, 2004 5:18 pm
Re: Lost ability to use xml catalog for xml-stylesheet PI?
Hi,
A pattern like this "-//ZSW//oxygen.css" looks like what you would use in a DOCTYPE public ID. The "href" attribute needs to either be a relative file location or an absolute URL reference (including protocol).
Here are some suggestions to make this work:
1) Leave your XML as it is but make the match in the catalog.xml more relaxed like:
2) Make the reference in the XML to the CSS to be a valid absolute URL reference:
and match it in the XML catalog:
Regards,
Radu
A pattern like this "-//ZSW//oxygen.css" looks like what you would use in a DOCTYPE public ID. The "href" attribute needs to either be a relative file location or an absolute URL reference (including protocol).
Here are some suggestions to make this work:
1) Leave your XML as it is but make the match in the catalog.xml more relaxed like:
Code: Select all
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uriSuffix uriSuffix="oxygen.css" uri="custom/html/css/de/oxygen.css"/>
</catalog>
Code: Select all
<?xml-stylesheet type="text/css" href="http://custom/oxygen.css"?>
Code: Select all
<catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog">
<uri name="http://custom/oxygen.css" uri="custom/html/css/de/oxygen.css"/>
</catalog>
Radu
Radu Coravu
<oXygen/> XML Editor
http://www.oxygenxml.com
<oXygen/> XML Editor
http://www.oxygenxml.com
Jump to
- Oxygen XML Editor/Author/Developer
- ↳ Feature Request
- ↳ Common Problems
- ↳ DITA (Editing and Publishing DITA Content)
- ↳ SDK-API, Frameworks - Document Types
- ↳ DocBook
- ↳ TEI
- ↳ XHTML
- ↳ Other Issues
- Oxygen XML Web Author
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Content Fusion
- ↳ Feature Request
- ↳ Common Problems
- Oxygen JSON Editor
- ↳ Feature Request
- ↳ Common Problems
- Oxygen PDF Chemistry
- ↳ Feature Request
- ↳ Common Problems
- Oxygen Feedback
- ↳ Feature Request
- ↳ Common Problems
- Oxygen XML WebHelp
- ↳ Feature Request
- ↳ Common Problems
- XML
- ↳ General XML Questions
- ↳ XSLT and FOP
- ↳ XML Schemas
- ↳ XQuery
- NVDL
- ↳ General NVDL Issues
- ↳ oNVDL Related Issues
- XML Services Market
- ↳ Offer a Service