[NeXus-tech] Schema [SEC=UNCLASSIFIED]

HAUSER, Nick nha at ansto.gov.au
Tue Aug 12 07:53:03 BST 2008


Hi Freddie,

Ferdi's xslt scripts are for housekeeping of the meta-DTD. Not useful
for manipulating hierarchy.  

Darren's UML work provided a method of housekeeping of the meta-DTD, and
a starting point for use of object oriented design; inheritance &
polymorphism.
In the document
http://www.webel.com.au/nexml/nha/NeXusBeans_dke_nha_DRAFT_2007-09-23.pd
f , Darren suggests candidate classes for polymorphism (see section 8).
For the purposes of this conversation, please ignore the java specific
references in the document, and the challenges of integrating java
generics into XML schema. 

Mark also presented a UML description at NIAC Berlin in a similar vein
to what Darren has described.

I guess it comes down to whether we want to use models to design the
NeXus structure, or code in XML, and use an XML or UML tool to view the
result.

Regards,

Nick.

 
-----Original Message-----
From: nexus-tech-bounces at nexusformat.org
[mailto:nexus-tech-bounces at nexusformat.org] On Behalf Of Akeroyd, FA
(Freddie)
Sent: Tuesday, 12 August 2008 4:34 AM
To: nexus-tech at nexusformat.org
Subject: Re: [NeXus-tech] Schema [SEC=UNCLASSIFIED]

Hi Nick,

Thank you for posting your DTD converted schema files. How flexible is
the conversion process? When I started on the DTD -> schema process I
also wanted to add a new hierarchy of derived types to simplify the
layout and future class/definition creation by instrument editors. In
their current form the DTD converted files would need quite a bit of
editing to get them into this new style, but if it was possible to
modify the conversion process that could indeed reduce the workload
significantly.

Regards,

Freddie


From: nexus-tech-bounces at nexusformat.org
[mailto:nexus-tech-bounces at nexusformat.org] On Behalf Of HAUSER, Nick
Sent: 17 July 2008 07:01
To: nexus-tech at nexusformat.org
Subject: [NeXus-tech] Schema [SEC=UNCLASSIFIED]


Schema generation
How is Freddie travelling with his schema writing? I had a look at
http://definition.nexusformat.org/schema/1.0/. I've attached a zip file
of a conversion done by Ferdi Franceschini to relaxng schema
http://www.relaxng.org/ which was done generatively from the base
classes in Jan 07. This was done with a group of xslt scripts to refine
the metaDTD first to a valid XML file, then to a schema. rng is the
normative form, from which xsd can be generated. I've also attached the
generated NXdetector.xsd. Ferdi will provide more info on this technique
if required. I think it may reduce the workload significantly.


Regards,

Nick.

_______________________________________________
NeXus-tech mailing list
NeXus-tech at nexusformat.org
http://lists.nexusformat.org/mailman/listinfo/nexus-tech



More information about the NeXus-tech mailing list