RE: [gdmxml] And now for some genealogy...

2002-07-02 Thread Michael Fitzgerald

Hans, Note RELAX NG answers below:

> My first question is rng-related. I know rng supports id/idref, but I'm
> not sure what it takes to invoke that. For example, the activity_id
> attribute of administrative_task should be an idref to the activity
> element with that id.

RELAX NG's implementation of ID/IDREF/IDREFS is modular. Jing supports it.

For example:



Must be of type ID (note arrows):

http://relaxng.org/ns/compatibility/datatypes/1.0";>
<<=
 ...


 <<


...


  

  
 <<==
  

  

Since there is at most one ID, the IDREF will resolve to that single, unique
ID, or the validator will generate an error.

See http://www.oasis-open.org/committees/relax-ng/compatibility.html#id for
a how-to
and http://www.thaiopensource.com/relaxng/jing.html to validate.

Jing, by the way, means "true" in Thai.

> Second, does the name of the definition need to be different than the
> name of the element? For example, is the following valid?
> 
>   
> 
>   
> 


Looks like you have a good start and are having fun!

Mike

It is okay if named definitions and elements that have the same name. This
will validate, no problem.

___
gdmxml mailing list
[EMAIL PROTECTED]
http://fugal.net/cgi-bin/mailman/listinfo/gdmxml



RE: [gdmxml] And now for some genealogy...

2002-07-02 Thread Michael Fitzgerald

By the way, rather than simple XML comments, you can embed foreign elements
in the RELAX NG schema for documentation purposes, such as the simple
 element provided in the compatibility spec [1] and
expressed with ## in the compact syntax, or with XHTML or DocBook tags.
During validation (simplification), a conforming RELAX NG processor discards
these foreign elements. You can use XSLT to extract documentation from you
schema, something like Javadoc does for Java.

Mike

[1] http://www.oasis-open.org/committees/relax-ng/compatibility.html



___
gdmxml mailing list
[EMAIL PROTECTED]
http://fugal.net/cgi-bin/mailman/listinfo/gdmxml