[jbosstools-dev] Question on xsd catalog entries
Rob Stryker
rstryker at redhat.com
Fri Jun 6 03:15:39 EDT 2014
Hi All:
So I recently (few months back?) moved all xsd files out into a
standalone plugin for contributing catalog entries. This has overall
proven ok, but there's an issue and I'm not sure how to fix it.
A typical xsd entry in my catalog.xml file looks like this:
<public publicId="urn:jboss:deployment-structure:1.2"
uri="xsd/jboss-deployment-structure-1_2.xsd"/>
The problem is when, in eclipse, you try to make a new xml file, and use
this catalog entry, the generated xml file looks like this:
<?xml version="1.0" encoding="UTF-8"?>
<p:jboss-deployment-structure
xmlns:p="urn:jboss:deployment-structure:1.2"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="urn:jboss:deployment-structure:1.2
file:///home/rob/code/jbtools/github/jbosstools-server/as/plugins/org.jboss.tools.as.catalog/schema/xsd/jboss-deployment-structure-1_2.xsd
"></p:jboss-deployment-structure>
The part here that's clearly wrong is:
xsi:schemaLocation="urn:jboss:deployment-structure:1.2
file:///home/rob/code/jbtools/github/jbosstools-server/as/plugins/org.jboss.tools.as.catalog/schema/xsd/jboss-deployment-structure-1_2.xsd
"
This is bad because these files can't really be saved in a shared
repository if it includes full paths to the schema file.
Does anyone know how I should modify my catalog entries so that the
generated xml does not include absolute filesystem urls?
This was realized by Martin in a comment on JBIDE-16358
Any help is greatly appreciated.
- Rob Stryker
More information about the jbosstools-dev
mailing list