Changeset 7584

Show
Ignore:
Timestamp:
05/12/08 18:28:17 (2 months ago)
Author:
sdlime
Message:

Resultset tag now recognizes feature tags. (RFC 36)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/mapserver/maptemplate.c

    r7573 r7584  
    968968  } 
    969969 
     970  *line = processLine(mapserv, *line, NULL, BROWSE); /* do substitutions, non-query tags only yet */ 
     971 
    970972  if(getInlineTag("resultset", *line, &tag) != MS_SUCCESS) { 
    971973    msSetError(MS_WEBERR, "Malformed resultset tag.", "processResultSetTag()"); 
     
    979981  free(*line); *line = preTag; 
    980982 
    981   if(lp->resultcache && lp->resultcache->numresults > 0) { 
    982     /* output the tag content */ 
     983  if(lp->resultcache && lp->resultcache->numresults > 0) {     
     984    /* probably will need a while-loop here to handle multiple instances of [feature ...] tags */ 
     985    if(processFeatureTag(mapserv, &tag, lp) != MS_SUCCESS) 
     986      return(MS_FAILURE); /* TODO: how to handle */  
    983987    *line = msStringConcatenate(*line, tag); 
    984988  }