[
http://jira.jboss.com/jira/browse/JBIDE-1771?page=comments#action_12406164 ]
Max Andersen commented on JBIDE-1771:
-------------------------------------
The best explanation i found for schemaLocation was
http://msdn2.microsoft.com/en-us/library/ms256100.aspx
Thus you can have multiple pairs and even also a single element pointing to a schema.
As far as I understand the first tuple in a pair is the namespace id - that is a
*possible* web remote location. So yes, opening a browser on this makes sense.
The second tuple is a *hint* to the xsd validator/parser on where the physical schema that
should be used is actually located. This can be both a local (e.g., canonical:
"c:/myschema.xsd" or relative to the current document: "myschema.xsd")
or a remote reference
"http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd"). Thus for this
second tuple the following seem to make sense for me:
1) Look it up in the catalog contribution and see if a mapping/file exists and open it, if
not skip.
2) Check if the tuple might be a local file canonical or relative to the current document,
if found open - if not skip
3) If everything else fails open the location in the browser.
p.s. are we sure the builtin link resolver doesn't already does the above?
OpenOn for xsi:schemaLocation attribute value doesn't work in
faces-config.xml.
-------------------------------------------------------------------------------
Key: JBIDE-1771
URL:
http://jira.jboss.com/jira/browse/JBIDE-1771
Project: Tools (JBoss Tools)
Issue Type: Bug
Affects Versions: 2.0.1
Reporter: Anton Klimkovich
Assigned To: Victor Rubezhny
Fix For: LATER
Attachments: JBDSnightlyBuildAndCurrentSvn.gif
JSF 1.2
<?xml version="1.0" encoding="UTF-8"?>
<faces-config version="1.2"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xi="http://www.w3.org/2001/XInclude"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
JSF 1.1
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE faces-config PUBLIC "-//Sun Microsystems, Inc.//DTD JavaServer Faces
Config 1.1//EN"
"http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira