Opened 14 years ago

Closed 14 years ago

#3397 closed defect (fixed)

XML Mapfile transformation issues with expressions and symbol

Reported by: aboudreault Owned by: aboudreault
Priority: normal Milestone: 5.6.3 release
Component: MapFile XML Schema Version: 5.6
Severity: minor Keywords:
Cc: asoares1@…

Description

Alexandre Soares has reported these two issues with the XML transformation:

  • When I transform my xml map file to a map file, my expressions that contain a regular expression (the same is true for filters) are rendered with double quotes (because the stylesheet has the quote="1" param for those templates).
  • The symbol attribute (which does not get quoted by default) causes a problem if the value references a symbol's name.

Change History (2)

comment:1 by aboudreault, 14 years ago

Two new types have been added in the xml schema:

  • expressionType
    <expression type="CONSTANT">583</expression> or <expression>583</expression> (quoted)
    <expression type="REGEX">/.../</expression> (not quoted)
    <expression type="MSEXPR">(...)</expression> (not quoted)
    
  • symbolType
    <symbol type="NAME">star.gif</symbol> (quoted)
    <symbol type="ID">32</symbol> (not quoted)
    

Fixed and committed in r9973. I'm waiting the Alexandre's test to backport this in 5.6.

comment:2 by aboudreault, 14 years ago

Resolution: fixed
Status: newclosed

Another fix about the transformation when the type is not specified in the <expression> has been committed in r9982. Backported in 5.6 branch in r9983.

Note: See TracTickets for help on using tickets.