<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html;charset=ISO-8859-1" http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
It would be really great if you would create a Trac entry for this:<br>
<a class="moz-txt-link-freetext" href="http://trac.osgeo.org/mapguide/">http://trac.osgeo.org/mapguide/</a><br>
<pre class="moz-signature" cols="72">Regards, Kenneth, GEOGRAF A/S
</pre>
<br>
<br>
web skrev:
<blockquote
 cite="mid:1205148411-1bd625f116e748fa784ff0368beb0c30@infogeo.ch"
 type="cite">
  <p>Hi all,<br>
For those who use the theme function of phpgenerictasks:<br>
  <br>
Sometimes when creating a Theme, an exception occurs in:<br>
  <br>
classes/theme.php method ApplyTheme():<br>
  <br>
At this line:<br>
$resourceService-&gt;SetResource($layerResId,
$byteSource-&gt;GetReader(), null);<br>
  <br>
The error sounds like this:</p>
  <p>Error: XML Indexer: Parse error in document at line, 34, char 12.
Parser message: Not enough elements to match content model :
'((LineStyle,Thickness,Color,Unit,SizeContext),ExtendedData1)'<br>
  <br>
So after browsing a little the web, I've seen a Post which fixes
similar problems&nbsp;for pointrules..<br>
  <br>
What needs to be done is:<br>
  <br>
Adding a &lt;SizeContext&gt;DeviceUnits&lt;/SizeContext&gt; tag in
phpgenerictasks\theme\templates\arearuletemplate.xml<br>
  <br>
Initially the file is like this:<br>
  <br>
&lt;AreaRule&gt;<br>
&nbsp;&lt;LegendLabel&gt;%s&lt;/LegendLabel&gt;<br>
&nbsp;&lt;Filter&gt;%s&lt;/Filter&gt;<br>
&nbsp;&lt;AreaSymbolization2D&gt;<br>
&nbsp; &lt;Fill&gt;<br>
&nbsp;&nbsp; &lt;FillPattern&gt;Solid&lt;/FillPattern&gt;<br>
&nbsp;&nbsp; &lt;ForegroundColor&gt;%s&lt;/ForegroundColor&gt;<br>
&nbsp;&nbsp; &lt;BackgroundColor&gt;FF000000&lt;/BackgroundColor&gt;<br>
&nbsp; &lt;/Fill&gt;<br>
&nbsp; &lt;Stroke&gt;<br>
&nbsp;&nbsp; &lt;LineStyle&gt;Solid&lt;/LineStyle&gt;<br>
&nbsp;&nbsp; &lt;Thickness&gt;0&lt;/Thickness&gt;<br>
&nbsp;&nbsp; &lt;Color&gt;%s&lt;/Color&gt;<br>
&nbsp;&nbsp; &lt;Unit&gt;Inches&lt;/Unit&gt;<br>
&nbsp; &lt;/Stroke&gt;<br>
&nbsp;&lt;/AreaSymbolization2D&gt;<br>
&lt;/AreaRule&gt;<br>
  <br>
and it might be changed like this:<br>
  <br>
&lt;AreaRule&gt;<br>
&nbsp;&lt;LegendLabel&gt;%s&lt;/LegendLabel&gt;<br>
&nbsp;&lt;Filter&gt;%s&lt;/Filter&gt;<br>
&nbsp;&lt;AreaSymbolization2D&gt;<br>
&nbsp; &lt;Fill&gt;<br>
&nbsp;&nbsp; &lt;FillPattern&gt;Solid&lt;/FillPattern&gt;<br>
&nbsp;&nbsp; &lt;ForegroundColor&gt;%s&lt;/ForegroundColor&gt;<br>
&nbsp;&nbsp; &lt;BackgroundColor&gt;FF000000&lt;/BackgroundColor&gt;<br>
&nbsp; &lt;/Fill&gt;<br>
&nbsp; &lt;Stroke&gt;<br>
&nbsp;&nbsp; &lt;LineStyle&gt;Solid&lt;/LineStyle&gt;<br>
&nbsp;&nbsp; &lt;Thickness&gt;0&lt;/Thickness&gt;<br>
&nbsp;&nbsp; &lt;Color&gt;%s&lt;/Color&gt;<br>
&nbsp;&nbsp; &lt;Unit&gt;Inches&lt;/Unit&gt;<br>
&nbsp;&nbsp;<strong> &lt;SizeContext&gt;DeviceUnits&lt;/SizeContext&gt;</strong><br>
&nbsp; &lt;/Stroke&gt;<br>
&nbsp;&lt;/AreaSymbolization2D&gt;<br>
&lt;/AreaRule&gt;<br>
  <br>
  <br>
It solves my problem, hope this can help someone :-)<br>
Cheers, R&eacute;my</p>
  <pre wrap="">
<hr size="4" width="90%">
_______________________________________________
mapguide-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:mapguide-users@lists.osgeo.org">mapguide-users@lists.osgeo.org</a>
<a class="moz-txt-link-freetext" href="http://lists.osgeo.org/mailman/listinfo/mapguide-users">http://lists.osgeo.org/mailman/listinfo/mapguide-users</a>
  </pre>
</blockquote>
</body>
</html>