Skip to content

Commit

Permalink
Add support for multiple LABEL per CLASS
Browse files Browse the repository at this point in the history
  • Loading branch information
markathomas committed Sep 27, 2013
1 parent 8b767ff commit 0b8c9ab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion xmlmapfile/mapfile.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -465,7 +465,7 @@
<xs:element name="expression" type="ms:expressionType" minOccurs="0"/>
<xs:element name="group" type="xs:string" minOccurs="0"/>
<xs:element name="keyImage" type="xs:string" minOccurs="0"/>
<xs:element name="Label" type="ms:Label" minOccurs="0"/>
<xs:element name="Label" type="ms:Label" minOccurs="0" maxOccurs="unbounded"/>
<xs:element name="LabelLeader" type="ms:LabelLeader" minOccurs="0"/>
<xs:element name="maxScaleDenom" type="xs:double" minOccurs="0"/>
<xs:element name="maxSize" type="xs:integer" default="50" minOccurs="0"/>
Expand Down
8 changes: 5 additions & 3 deletions xmlmapfile/mapfile.xsl
Original file line number Diff line number Diff line change
Expand Up @@ -932,9 +932,11 @@
<xsl:with-param name="node" select="'ms:keyImage'"/>
<xsl:with-param name="quote" select="1"/>
</xsl:call-template>
<xsl:apply-templates select="ms:Label">
<xsl:with-param name="indent" select="$indent + 1"/>
</xsl:apply-templates>
<xsl:for-each select="ms:Label">
<xsl:apply-templates select=".">
<xsl:with-param name="indent" select="$indent + 1"/>
</xsl:apply-templates>
</xsl:for-each>
<xsl:apply-templates select="ms:LabelLeader">
<xsl:with-param name="indent" select="$indent + 1"/>
</xsl:apply-templates>
Expand Down

0 comments on commit 0b8c9ab

Please sign in to comment.