Print

Print


Oke as computer scientist some corrections:

XSLT -> EXtensible Stylesheet Language is a language to process XML files. They can be used to transform XML into another xml file. It rewrite the syntax

DTD -> Document Type Definition, is a language to define the structure of a XML file. So it serves a completely different goal. DTD helps to valid if a XML is according to it's standards.

XSD -> XML Schema, is also a language to define the structure of an XML file. XSD is again XML.

-- What the discussion is about is to use XSD or DTD.  XSLT has nothing to do with!

----------

XSD vs DTD - So what's the difference?

Here are a number of differences.  Some are not important, some are real important and easy to understand, some are real important and hard to understand.  This list is not exhaustive.

DTD's are not namespace aware.

DTD's have #define, #include, and #ifdef -- or, less C-oriented, the ability to define shorthand abbreviations, external content, and some conditional parsing.

A DTD describes the entire XML document (even if it leaves "holes"); a schema can define portions.

XSD has a type system.

XSD has a much richer language for describing what element or attribute content "looks like."  This is related to the type system.

You can put a DTD inline into an XML document, you cannot do this with XSD.  This means DTD's are more secure (you only have to protect one bytestream -- the xml/dtd -- and not multiple).

The official definition of "valid XML" requires a DTD.  Since this may be impractical, if not impossible, you often have to settle for schema-valid, which is not quite the same.

--

Hope this is helpful


Op 9 nov 2011, om 19:40 heeft De Catanzaro, Christine D het volgende geschreven:

> I second Michele's remark. Not everyone who is conversant with the EAD DTD is also conversant with XSLT, so the need is there. Also, a clear definition of the differences between a DTD and a schema (and why the decision has been made to switch to the schema) would be very helpful.
> 
> Thanks,
> Christine 
> 
> ----- Original Message -----
> From: "Michele R Combs" <[log in to unmask]>
> To: [log in to unmask]
> Sent: Wednesday, November 9, 2011 1:35:07 PM
> Subject: Re: none of my value-of statements work
> 
> Well, I know I had trouble the one time I tried it :)   And if the next version of EAD is released as a schema only, lots of people will need to do it so seems like a step by step guide would be helpful.
> 
> Michele
> 
> 
> -----Original Message-----
> From: Encoded Archival Description List [mailto:[log in to unmask]] On Behalf Of Eric Lease Morgan
> Sent: Wednesday, November 09, 2011 10:56 AM
> To: [log in to unmask]
> Subject: Re: none of my value-of statements work
> 
> Michele Combs:
> 
>> Someday perhaps someone will write a nice concise guide for the EAD Help Pages that lays out the step-by-step process for switching your style sheets from DTD to schema, including troubleshooting of things like this...
> 
> 
> Is it true then, that other people have had problems migrating their stylesheets as they move from DTD-based EAD files to schema-based ones?