SLDParser: CssParameter parser should support mixed syntax 
-----------------------------------------------------------

                 Key: GEOT-1547
                 URL: http://jira.codehaus.org/browse/GEOT-1547
             Project: GeoTools
          Issue Type: Improvement
          Components: core styling
    Affects Versions: 2.5-M0, 2.4-RC0, 2.3.4
            Reporter: Mauro Bartolomeoli
            Priority: Minor
             Fix For: 2.3.4
         Attachments: sldparser_mixed_cssparameters.patch

SLDParser doesn't currently support CssParameter tags (and other 
ParameterValueType tags, such  as Label) with a mixed content (free text 
interleaved by element expressions). Using mixed syntax would be very useful, 
expecially for Label tags, where you could specify something like:

<Label>this is a prefix, <ogc:PropertyName>myProperty</ogc:PropertyName>; this 
is a postfix</Label>

Included is a patch to org.geotools.styling.SLDParser implementing mixed 
parsing, modifying the parseCssParameter method.
I have also defined a new version of the method with an additional parameter, 
trimWhiteSpace (defaulting to true) which permits to parse without trimming 
whitespace. trimWhiteSpace=false  is used for the Label tag parsing (often you 
need spaces between text and expressions and is not correct to trim them). In 
all other cases, text is trimmed and completely ignored if empty after trimming.


-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems?  Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Geotools-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-devel

Reply via email to