<html><head><meta http-equiv="Content-Type" content="text/html charset=windows-1252"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><br><div><div>On 15. 6. 2014, at 10:41, Max Rydahl Andersen &lt;<a href="mailto:manderse@redhat.com">manderse@redhat.com</a>&gt; wrote:</div><br class="Apple-interchange-newline"><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;">On 12 Jun 2014, at 10:09, Max Rydahl Andersen wrote:<br><br><blockquote type="cite">On 11 Jun 2014, at 16:01, Rob Stryker wrote:<br><br><blockquote type="cite">I'd just like to point out the space is here as well, so the space<br>thing, at least, is a wtp problem ;)<br></blockquote><br>space ?<br></blockquote><br>I took a look - still don't know what that "space" means.<br></div></blockquote><div><br></div>The space at the end, just before “:</div><div>xsi:schemaLocation="<a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a><a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a>&nbsp;“</div><div><br></div><div>-Martin</div><div><br><blockquote type="cite"><div style="font-size: 12px; font-style: normal; font-variant: normal; font-weight: normal; letter-spacing: normal; line-height: normal; orphans: auto; text-align: start; text-indent: 0px; text-transform: none; white-space: normal; widows: auto; word-spacing: 0px; -webkit-text-stroke-width: 0px;"><br>Anyways seems only difference is that WTP schemas has<br><br>&nbsp;&lt;uri<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;name="<a href="http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd">http://xmlns.jcp.org/xml/ns/javaee/beans_1_1.xsd</a>"<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;uri="dtdsAndSchemas/beans_1_1.xsd"/&gt;<br><br>declared and that is what maps that uri to that location hint.<br><br>I went and added this and voila entries for that get proper location<span class="Apple-converted-space">&nbsp;</span><br>hint.<br><br>BUT with this two different entries shows up in the xml wizard so its<span class="Apple-converted-space">&nbsp;</span><br>not of much help ;/<br><br>why there is this different between using plugin.xml uri's vs xml<span class="Apple-converted-space">&nbsp;</span><br>catalog i'm not sure about<br>but I'm surprised since I thought this was said to working when you did<span class="Apple-converted-space">&nbsp;</span><br>the whole "move" to xml catalog thing ?<br><br>/max<br><br><blockquote type="cite"><br><br>Anyways my first guess/attempt is that the docs on<br><a href="https://wiki.eclipse.org/Using_the_XML_Catalog">https://wiki.eclipse.org/Using_the_XML_Catalog</a> explains it:<br><br>"Note : If your XML document specificed relative schema locations<span class="Apple-converted-space">&nbsp;</span><br>(e.g.<br>'foo.xsd' as show below) then an XML Schema can NOT be registered<span class="Apple-converted-space">&nbsp;</span><br>using<br>"foo.xsd" as the Schema Location key. TODO.. reference section below<br>that describes why this is the case and how XML Catalog v1.1 provides<span class="Apple-converted-space">&nbsp;</span><br>a<br>way to partially solve this.<br><br>&lt;xyz:foo xmln:xyz="<a href="http://www.example.org/foo/">http://www.example.org/foo/</a>"<br>xsi:schemaLocation="foo.xsd" ...<br>"<br><br>and then in FAQ it shows:<br><br>I've registered an XML Schema by namespace but XML files are still<span class="Apple-converted-space">&nbsp;</span><br>using<br>the 'xsi:schemaLocation' value. Why?<br>An explicitly specified schema location value takes precedence over<span class="Apple-converted-space">&nbsp;</span><br>XML<br>Catalog entries that are keyed by namespace.<br><br>...so sounds like we need a namespace declaration to overrule the<br>relative specified one in the catalog ?<br><br>/max<br><br><blockquote type="cite">On 06/11/2014 07:41 PM, Martin Malina wrote:<br><blockquote type="cite">I don’t think so, no.<br><br>A couple of examples:<br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;http:address location="<a href="http://tempuri.org">http://tempuri.org</a>"<br>xmlns:http="<a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a>"<br>xmlns:wsdl="<a href="http://schemas.xmlsoap.org/wsdl/">http://schemas.xmlsoap.org/wsdl/</a>"<br>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>xsi:schemaLocation="<a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a><br><a href="http://schemas.xmlsoap.org/wsdl/http/">http://schemas.xmlsoap.org/wsdl/http/</a> "&gt;&lt;/http:address&gt;<br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;j2ee:application version="1.4"<br>xmlns:j2ee="<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a>"<br>xmlns:xml="<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>"<br>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>xsi:schemaLocation="<a href="http://java.sun.com/xml/ns/j2ee">http://java.sun.com/xml/ns/j2ee</a><br><a href="http://java.sun.com/xml/ns/j2ee/application_1_4.xsd">http://java.sun.com/xml/ns/j2ee/application_1_4.xsd</a> "&gt;<br>&lt;j2ee:module&gt;<br>&lt;j2ee:connector&gt;token&lt;/j2ee:connector&gt;<br>&lt;/j2ee:module&gt;<br>&lt;/j2ee:application&gt;<br><br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;javaee:faces-config version="2.0"<br>xmlns:javaee="<a href="http://java.sun.com/xml/ns/javaee">http://java.sun.com/xml/ns/javaee</a>"<br>xmlns:xml="<a href="http://www.w3.org/XML/1998/namespace">http://www.w3.org/XML/1998/namespace</a>"<br>xmlns:xsi="<a href="http://www.w3.org/2001/XMLSchema-instance">http://www.w3.org/2001/XMLSchema-instance</a>"<br>xsi:schemaLocation="<a href="http://java.sun.com/xml/ns/javaee">http://java.sun.com/xml/ns/javaee</a><br><a href="http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd">http://java.sun.com/xml/ns/javaee/web-facesconfig_2_0.xsd</a><br>"&gt;&lt;/javaee:faces-config&gt;<br><br><br>-Martin<br><br>On 11. 6. 2014, at 1:41, Max Rydahl Andersen &lt;manderse@redhat.com&gt;<br>wrote:<br><br><blockquote type="cite">Before I go digg deeper - does this also happen for xsd's provided<br>by<br>eclipse or wtp itself ?<br><br>/max<br><br><blockquote type="cite">Hi All:<br><br>So I recently (few months back?) moved all xsd files out into a<br>standalone plugin for contributing catalog entries. This has<br>overall<br>proven ok, but there's an issue and I'm not sure how to fix it.<br><br>A typical xsd entry in my catalog.xml file looks like this:<br><br>&lt;public publicId="urn:jboss:deployment-structure:1.2"<br>uri="xsd/jboss-deployment-structure-1_2.xsd"/&gt;<br><br><br>The problem is when, in eclipse, you try to make a new xml file,<br>and<br>use<br>this catalog entry, the generated xml file looks like this:<br><br>&lt;?xml version="1.0" encoding="UTF-8"?&gt;<br>&lt;p:jboss-deployment-structure<br>xmlns:p="urn:jboss:deployment-structure:1.2"<br>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"<br>xsi:schemaLocation="urn:jboss:deployment-structure:1.2<br>file:///home/rob/code/jbtools/github/jbosstools-server/as/plugins/org.jboss.tools.as.catalog/schema/xsd/jboss-deployment-structure-1_2.xsd<br>"&gt;&lt;/p:jboss-deployment-structure&gt;<br><br><br>The part here that's clearly wrong is:<br>xsi:schemaLocation="urn:jboss:deployment-structure:1.2<br>file:///home/rob/code/jbtools/github/jbosstools-server/as/plugins/org.jboss.tools.as.catalog/schema/xsd/jboss-deployment-structure-1_2.xsd<br>"<br><br>This is bad because these files can't really be saved in a shared<br>repository if it includes full paths to the schema file.<br><br>Does anyone know how I should modify my catalog entries so that<span class="Apple-converted-space">&nbsp;</span><br>the<br>generated xml does not include absolute filesystem urls?<br><br>This was realized by Martin in a comment on JBIDE-16358<br><br>Any help is greatly appreciated.<br><br>- Rob Stryker<br>_______________________________________________<br>jbosstools-dev mailing list<br>jbosstools-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/jbosstools-dev<br></blockquote><br>/max<br>http://about.me/maxandersen<br><br>_______________________________________________<br>jbosstools-dev mailing list<br>jbosstools-dev@lists.jboss.org<br>https://lists.jboss.org/mailman/listinfo/jbosstools-dev<br></blockquote></blockquote></blockquote><br><br>/max<br><a href="http://about.me/maxandersen">http://about.me/maxandersen</a><br><br>_______________________________________________<br>jbosstools-dev mailing list<br><a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a><br></blockquote><br><br>/max<br><a href="http://about.me/maxandersen">http://about.me/maxandersen</a><br><br>_______________________________________________<br>jbosstools-dev mailing list<br><a href="mailto:jbosstools-dev@lists.jboss.org">jbosstools-dev@lists.jboss.org</a><br><a href="https://lists.jboss.org/mailman/listinfo/jbosstools-dev">https://lists.jboss.org/mailman/listinfo/jbosstools-dev</a></div></blockquote></div><br></body></html>