<html><head><meta http-equiv="Content-Type" content="text/html charset=iso-8859-1"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space; "><div>See comments inline.</div><div><br></div><div><div><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote">On Tue, Jan 15, 2013 at 1:05 PM, Diethard Steiner&nbsp;<span dir="ltr">&lt;<a href="mailto:diethard.steiner@gmail.com" target="_blank">diethard.steiner@gmail.com</a>&gt;</span>&nbsp;wrote:<br><blockquote class="gmail_quote" style="margin: 0px 0px 0px 0.8ex; border-left-width: 1px; border-left-color: rgb(204, 204, 204); border-left-style: solid; padding-left: 1ex; position: static; z-index: auto; "><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><div class="gmail_quote">So I have been creating an XML file based on the Mondrian 4 DTD you mentioned.&nbsp;<br><div dir="ltr">There seems to be a problem with the Measure element within Measures ... which turns out to be invalid based on this DTD. I am following the example from the Mondrian 4 book. Screenshots attached. Based on the DTD, there seems to be only MeasureOrRef valid within Measures.</div></div></div></div></div></blockquote></div></div></blockquote><div><br></div><div>Mondrian's schema definition uses something like super-types to define collections of allowable elements. "MeasureOrRef" is such a supertype. There is no actual XML element called "MeasureOrRef". The allowed children of Measures are Measure and MeasureRef.&nbsp;</div><div><br></div></div></div><div><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote"><div dir="ltr"><div>- It is not possible to define a degenerate dimension: The DTD is unaware of any column attribute for the attribute element (sample in Mondrian 4 book shows an attribute column)</div></div></div></div></blockquote><div><br></div><div>That was a typo in the book. It should read "keyColumn" and not "column", thus:</div><div>
                
        
        
                <div class="page" title="Page 22">
                        <div class="section" style="background-color: rgb(238, 238, 255); position: static; z-index: auto; ">
                                <div class="layoutArea">
                                        <div class="column">
                                                <pre><span style="font-size: 10.000000pt; font-family: 'Courier'">&lt;Dimension name='Payment Type' table='sales_fact_1997'&gt;
  &lt;Attributes&gt;
</span></pre>
                                                <pre><span style="font-size: 10.000000pt; font-family: 'Courier'">    &lt;Attribute name='Payment Type' keyColumn='payment_type'
               approxRowCount='3'/&gt;
</span></pre>
                                                <pre><span style="font-size: 10.000000pt; font-family: 'Courier'">  &lt;/Attributes&gt;
&lt;/Dimension&gt;</span></pre></div></div></div></div></div><br><blockquote type="cite"><div class="gmail_extra"><div class="gmail_quote">- It is not possible to create a FactLink as a child of DimensionLinks<br></div></div></blockquote><div><br></div><div>This is a similar misunderstanding to MeasureOrRef. DimensionLinks allows children whose supertype is "DimensionLink". The elements that have that property are ForeignKeyLink, FactLink, ReferenceLink, NoLink, CopyLink.</div><div><br></div><div>Only ForeignKeyLink, FactLink, NoLink are described in ch 4 and 5 currently.</div><div><br></div><div>Thanks for the feedback... keep it coming!</div><div><br></div><div>For feedback related to the book, you can also post to Manning's forums (<a href="http://www.manning-sandbox.com/forum.jspa?forumID=823">http://www.manning-sandbox.com/forum.jspa?forumID=823</a>). Or this list. Whichever you prefer.</div><div><br></div><div>Julian</div><div><br></div></div></body></html>