jEdit Community - Resources for users of the jEdit Text Editor
Using XML catalog does not work
Submitted by olmedilla on Thursday, 25 August, 2005 - 20:49
Hi, I am opening a xml file starting with <?xml version="1.0" encoding="UTF-8"?> <Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:ctx="urn:oasis:names:tc:xacml:1.0:context" xmlns:md="http:www.medico.com/schemas/record.xsd" PolicyId="urn:oasis:names:tc:xacml:examples:policyid:3" RuleCombiningAlgId="urn:oasis:names:tc:xacml:1.0:rule-combining-algorithm:deny-overrides"> ... in jedit and i get the following error in the console window 5:cvc-elt.1: Cannot find the declaration of element 'Policy'. However, I have a catalog added in the xml plug-in options with the schema in which Policy is defined. The catalog is as follows: <?xml version="1.0"?> <!DOCTYPE catalog PUBLIC "-//OASIS//DTD Entity Resolution XML Catalog V1.0//EN" "http://www.oasis-open.org/committees/entity/release/1.0/catalog.dtd"> <catalog xmlns="urn:oasis:names:tc:entity:xmlns:xml:catalog"> <rewriteSystem systemIdStartString="urn:oasis:names:tc:xacml:1.0:policy" rewritePrefix="file://...fullpath.../xacml/examples/cs-xacml-schema-policy-01.xsd"/> </catalog> The xmlcatalog tool from libxml works perfectly when I require the "urn:oasis:names:tc:entity:xmlns:xml:catalog" and returns the rewritten one. However, with jedit, I still get the same error and I have no idea of whether I am doing anything wrong or whether it is a bug. BTW, jedit outputs errors [error] SideKick #1: Cannot find CatalogManager.properties and when I finish I get [error] SideKick: Null editPane! I am using java 1.5, jedit 4.2 and xml plugin 0.13 in a gentoo distribution. Thanks in advance,
Comment viewing options
Select your preferred way to display the comments and click 'Save settings' to activate your changes.
If your document starts with:
by Skeeve on Fri, 30/09/2005 - 10:16
If your document starts with:
<?xml version="1.0" encoding="UTF-8"?>
<Policy xmlns="urn:oasis:names:tc:xacml:1.0:policy"
it is no wonder that jEdit complains. You haven't set any DOCTYPE so which DTD should be loaded?
User login
Browse archives
« April 2024  
MoTuWeThFrSaSu
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
 
Poll
Are you interested in language packs for jEdit?
Yes, and I could help maintain translations
26%
Yes, I'd like to have translations
32%
Indifferent
35%
No, that'd be bad (please comment)
7%
Total votes: 1093
Syndication
file   ver   dls
German Localization light   4.4.2.1   82349
Context Free Art (*.cfdg)   0.31   46055
BBEdit scheme   1.0   18595
JBuilder scheme   .001   18495
ColdFusion scheme   1.0   18024
R Edit Mode - extensive version   0.1   17473
Advanced HTML edit mode   1.0   16206
Matlab Edit Mode   1.0   16068
jEdit XP icons   1.0   15229
XP icons for jEdit   1.1   14293