<!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->SetResource($layerResId,
$byteSource->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 for pointrules..<br>
<br>
What needs to be done is:<br>
<br>
Adding a <SizeContext>DeviceUnits</SizeContext> tag in
phpgenerictasks\theme\templates\arearuletemplate.xml<br>
<br>
Initially the file is like this:<br>
<br>
<AreaRule><br>
<LegendLabel>%s</LegendLabel><br>
<Filter>%s</Filter><br>
<AreaSymbolization2D><br>
<Fill><br>
<FillPattern>Solid</FillPattern><br>
<ForegroundColor>%s</ForegroundColor><br>
<BackgroundColor>FF000000</BackgroundColor><br>
</Fill><br>
<Stroke><br>
<LineStyle>Solid</LineStyle><br>
<Thickness>0</Thickness><br>
<Color>%s</Color><br>
<Unit>Inches</Unit><br>
</Stroke><br>
</AreaSymbolization2D><br>
</AreaRule><br>
<br>
and it might be changed like this:<br>
<br>
<AreaRule><br>
<LegendLabel>%s</LegendLabel><br>
<Filter>%s</Filter><br>
<AreaSymbolization2D><br>
<Fill><br>
<FillPattern>Solid</FillPattern><br>
<ForegroundColor>%s</ForegroundColor><br>
<BackgroundColor>FF000000</BackgroundColor><br>
</Fill><br>
<Stroke><br>
<LineStyle>Solid</LineStyle><br>
<Thickness>0</Thickness><br>
<Color>%s</Color><br>
<Unit>Inches</Unit><br>
<strong> <SizeContext>DeviceUnits</SizeContext></strong><br>
</Stroke><br>
</AreaSymbolization2D><br>
</AreaRule><br>
<br>
<br>
It solves my problem, hope this can help someone :-)<br>
Cheers, Ré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>