OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

RE: CreateNewInstance" from xml(Schema)



You could always map to relational tables that just contain empty
instances so a query would give you a pseudo-skeleton. But writing an
XSLT stylesheet is probably not much more hassle. Maybe somebody on this
or the XSLT list already did something like this...

Best regards
Michael

> -----Original Message-----
> From: sabba [mailto:sabbadin@infinito.it] 
> Sent: Thursday, April 26, 2001 9:18 AM
> To: Michael Rys; Jurgen
> Cc: xml-dev@lists.xml.org
> Subject: Re: CreateNewInstance" from xml(Schema)
> 
> 
> micheal, thank for your answer.
> actually what i need is a skeleton generator.
> that is, infer an instance from a schema.
> humm ..:( i do not wnat to write this stuff :(
> 
> Enrico Sabbadin: esabbadin@vb2themax.com 
> http://www.sabbasoft.com MTS/COM+ / VB-COM FAQ: 
> http://www.sabbasoft.com/mts_faq.htm
> 
> 
> ----- Original Message ----- 
> From: "Michael Rys" <mrys@microsoft.com>
> To: "Jurgen" <jurgen.moortgat@oracle.com>; "sabba" 
> <sabbadin@infinito.it>
> Cc: <xml-dev@lists.xml.org>
> Sent: Thursday, April 26, 2001 5:59 PM
> Subject: RE: CreateNewInstance" from xml(Schema)
> 
> 
> Jurgen, I don't think that this is what Enrico is looking for.
> 
> What he wants is a document instance generator that given a 
> schema generates valid instances for that schema.
> 
> The closest thing that I am aware of is the annotated schema 
> mechanism of SQLServer, where you take a schema, annotate it 
> against the database tables and then use XPath expressions to 
> get XML out according to the schema. 
> 
> Enrico, what I find missing in your description is where the 
> data that will form the new document instance will come from. 
> If from a database, the approach above should be what you are 
> looking for, if random of if you just want a skeleton, you 
> would have to write your own application, as far as I know. 
> 
> HTH
> Michael
> 
> > -----Original Message-----
> > From: Jurgen [mailto:jurgen.moortgat@oracle.com]
> > Sent: Thursday, April 26, 2001 6:03 AM
> > To: sabba
> > Cc: xml-dev@lists.xml.org
> > Subject: Re: CreateNewInstance" from xml(Schema)
> > 
> > 
> > 
> > hi,
> > 
> > Oracle's XSQL Servlet Framework does exactly what you want:
> > 
> > An XML Document containing an SQL Query is send to a
> > (servlet enabled) web server to handle the request.
> > 
> > The output is an XML Document containg the result of the
> > SQL Query.
> > 
> > Learn more about it on http://technet.oracle.com
> > 
> > cheers,
> > Jurgen.
> > 
> > 
> > > sabba wrote:
> > > 
> > > hi,
> > > i'm developing a new application that's heavily based on XML. i'm
> > > loading and saving xml document instances from and to database 
> > > "without prob".
> > > 
> > > I'm currently evaluating the best way to implement a "new 
> document"
> > > feature, that is , generate an XML document instance 
> based on some 
> > > kind of definition
> > > (something like when you make an ado recordset from a 
> "select * from
> > > mytable
> > > where 1=2" sql statement)
> > > i'm considering using an xml-schema document (or a custom 
> > XML -schema
> > > like-
> > > document) and then pass this schema to an XSL document that would 
> > > output a brand new xml instance document based on the schema
> > > Do u thing it's the right approach ?
> > > Has someone tryed successfully something similar ?
> > > ready made code for this ?
> > > suggestions and comments are welcome
> > > Enrico Sabbadin: esabbadin@vb2themax.com
> > > http://www.sabbasoft.com
> > > MTS/COM+ / VB-COM FAQ: http://www.sabbasoft.com/mts_faq.htm
> > >
> > 
> > ------------------------------------------------------------------
> > The xml-dev list is sponsored by XML.org, an initiative of 
> > OASIS <http://www.oasis-open.org>
> > 
> > The list archives are at 
> > http://lists.xml.org/archives/xml-dev/
> > 
> > To unsubscribe from this elist send a message with the single 
> > word "unsubscribe" in the body to: xml-dev-request@lists.xml.org
> > 
> 
> ------------------------------------------------------------------
> The xml-dev list is sponsored by XML.org, an initiative of OASIS
> <http://www.oasis-open.org>
> 
> The list archives are at http://lists.xml.org/archives/xml-dev/
> 
> To unsubscribe from this elist send a message with the single word
> "unsubscribe" in the body to: xml-dev-request@lists.xml.org
> 
> 
>