[Mondrian] Mondrian 4 XSD
diethard.steiner at gmail.com
Thu Jan 17 06:34:27 EST 2013
Many thanks for your feedback!
(1) I think for new users it would be an advantage to have a XSD or DTD to
easily lay out the OLAP schema by using a GUI (any popular XML editor
supports some graphical helpers to easily create an XML doc). I am also
talking about new users who are not familiar with Java. So having an
XSD/DTD that they can easily reference in their XML editor would give them
a good "guide" on how to structure the Mondrian schema. After working with
XSD/DTD a few times, the user will get comfortable writing OLAP schema by
(2) For seasoned users a XSD/DTD is still useful just as a quick
(3) It might be a good idea to have a public reference to each version of
the XSD/DTD. So instead of asking users to download the XSD/DTD, you can
ask them to just do this:
<!DOCTYPE Schema PUBLIC "
... I am not too sure if this a permanent location.
If you are wondering why I am talking about all this ... here is the link
to the blog post I am currently working on:
Mondrian 4 Blog Post
Please note that this tutorial is targeted at users not familiar with Java.
Any feedback is appreciated!
On Wed, Jan 16, 2013 at 10:13 PM, Julian Hyde <jhyde at pentaho.com> wrote:
> See comments inline.
> On Tue, Jan 15, 2013 at 1:05 PM, Diethard Steiner <
> diethard.steiner at gmail.com> wrote:
>> So I have been creating an XML file based on the Mondrian 4 DTD you
>> 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.
> 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.
> - 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)
> That was a typo in the book. It should read "keyColumn" and not "column",
> <Dimension name='Payment Type' table='sales_fact_1997'>
> <Attribute name='Payment Type' keyColumn='payment_type'
> - It is not possible to create a FactLink as a child of DimensionLinks
> 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.
> Only ForeignKeyLink, FactLink, NoLink are described in ch 4 and 5
> Thanks for the feedback... keep it coming!
> For feedback related to the book, you can also post to Manning's forums (
> http://www.manning-sandbox.com/forum.jspa?forumID=823). Or this list.
> Whichever you prefer.
> Mondrian mailing list
> Mondrian at pentaho.org
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the Mondrian