I had imagined a collection of task-based schema definition files,
probably just one for the core tasks, which would be combined at
run-time to create the full schema definition. This way you could
include as many as you like, or customize them.

Automatic generation is a good idea. That was what I was imagining in
the beginning but I didn't think there was enough meta-data in the task
classes themselves to define the schema. After looking into I think
there is enough to start.

I've created a simple example that creates XSD Elements for each
TaskNameAttribute and uses the TaskAttributeAttribute as XSD Attributes.
Now I need to finish it up by doing included Elements :)
 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]] On Behalf Of Ian
MacLean
Sent: Wednesday, April 10, 2002 4:33 PM
To: Scott Hernandez
Cc: [EMAIL PROTECTED]
Subject: Re: [nant-dev] XML Schema Def (XSD)

Scott Hernandez wrote:

>Has any work begun on an XML Schema Definition (XSD) for nant (the
build
>file)?
>
>If not, I would like to start one, and suggest a structure for
>incorporating sections, like for new tasks. 
>
>
A definitive schema isn't really possible for a Nant build file given 
that you don't know what tasks will be available until runtime. We're 
looking at generating a schema on the fly based on the tasks currently 
available to NAnt. Somthing like nant -schema nantschema.xml. I'm not 
sure what you mean by "sections" for new tasks

Ian



_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers


_______________________________________________
Nant-developers mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-developers

Reply via email to