• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Generating XSD

 
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,
Suppose you have your domain model defined in XML.
You need to generate XSDs so that you can use representations of your domain model in webservices.

You have two choices:

1. Use something like XLST.
2. Use a scripting language which looks at your XMLs and generates your XSDs?

Questions:
1. What limiations are there using XLST? Is there any fancy logic you will not be able to do using it?
2. If you have to use a scripting language to generate the XSDs what would be a good choice?

Thanks.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
You can certainly define the "data" portion of your domain/business model with an XML-based language.

How will you excecute domain/business logic with this data?

1. What limiations are there using XLST? Is there any fancy logic you will not be able to do using it?
2. If you have to use a scripting language to generate the XSDs what would be a good choice?



XSLT is a non-object-oriented programming language. There will be limitations when attempting to implement certains types of logic.

You can create XML schemas with a Java application or a Perl application or a C++ application or a BASIC application or a COBOL application ...lots of choices

Aside, you wouldn't read XML files and then create XSD. Creating the XSD comes first... you are thinking backwards!
 
Luke Murphy
Ranch Hand
Posts: 300
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Jimmy Clark wrote:

Aside, you wouldn't read XML files and then create XSD. Creating the XSD comes first... you are thinking backwards!


Agree. I don't make some choices. The organisation I am involved with did a few years back and we are stuck with them.
 
Jimmy Clark
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sounds good. Check out the Eclipse Modeling Framework (EMF). It represents a clean strategy for building applications based upon a data model.
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic