[jbosstools-dev] Question on xsd catalog entries
Max Rydahl Andersen
manderse at redhat.com
Tue Jun 10 19:41:27 EDT 2014
Before I go digg deeper - does this also happen for xsd's provided by
eclipse or wtp itself ?
/max
> 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
> _______________________________________________
> jbosstools-dev mailing list
> jbosstools-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/jbosstools-dev
/max
http://about.me/maxandersen
More information about the jbosstools-dev
mailing list