Brett Walker created GEOT-4117:
----------------------------------
Summary: Select XML attributes on the root element
Key: GEOT-4117
URL: https://jira.codehaus.org/browse/GEOT-4117
Project: GeoTools
Issue Type: Improvement
Components: app-schema plugin
Environment: Apache Maven 3.0.4 (r1232337; 2012-01-17 19:44:56+1100)
Java version: 1.6.0_22, vendor: Sun Microsystems Inc.
Default locale: en_AU, platform encoding: Cp1252
OS name: "windows xp", version: "5.1", arch: "x86", family: "windows"
Reporter: Brett Walker
Attachments: SelectPropertyNameWithGmlIdAttribute.patch
The app-schema plugin doesn't allow the selection of attributes on the root
element; i.e. the selection of client properties of the target element. For
example the following x-path on a fictious schema will work:
bq. {{ns:root_element/ns:nested_element/@ns:attribute}}
but the following x-path will not work:
bq. {{ns:root_element/@ns:attribute}}
This x-path selection mechanism is not disallowed by the OGC Filter Encoding
standard.
I have a use-case where a filter is required to be applied to the attribute of
the root element; currently this is not supported by the app-schema plugin.
I have provided a patch which includes test cases that extends
{{FeatureTypeMapping}} and {{XPath}} to allow my use-case to proceed. {{mvn
clean install}} on trunk passes all tests.
In implementing {{XPath.rootElementSteps()}} I have tried to follow
{{XPath.steps()}} as a template. {{FeatureTypeMapping.findMappingsFor()}} has
been altered, as little as possible, to take advantage of
{{XPath.rootElementSteps()}} where appropraite.
Does the app-schema documentation need to be amended? IMHO I think it doesn't.
This is just a correction to a deficiency, overlooked by the original designers
because they didn't have a specific use-case.
I'm happy to answer questions or provided additional details about my use-case.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://jira.codehaus.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
------------------------------------------------------------------------------
For Developers, A Lot Can Happen In A Second.
Boundary is the first to Know...and Tell You.
Monitor Your Applications in Ultra-Fine Resolution. Try it FREE!
http://p.sf.net/sfu/Boundary-d2dvs2
_______________________________________________
GeoTools-Devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel