• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Equivalent of Entity

 
venkat vyasam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What is the equivalent of Entity in Schema. How do I automatically substitue a string of repetitive text in xml document,Like the way its possible using DTD with Entity.
[ July 01, 2002: Message edited by: venkat vyasam ]
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
"However, schemas are not a be-all and end-all solution. In particular, schemas do not replace DTDs! You can use both schemas and DTDs in the same document. DTDs can do several things that schemas cannot do, most importantly declaring entities."
http://www.ibiblio.org/xml/books/bible2/chapters/ch24.html

Cheers,
Dan
 
Shoba Ramachandran
Ranch Hand
Posts: 68
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Dan said, Entitiy cannot be defined using Schema. You have to use DTD for this.
-Shoba
 
venkat vyasam
Greenhorn
Posts: 3
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Dan and Shoba Got it.
I am still bent on listing "several" other things that Schema cannot do that DTD does.Can anyone help me list few more.....
 
Dan Drillich
Ranch Hand
Posts: 1183
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Venkat,
The citation from the book says - "...schemas do not replace DTDs! ....DTDs can do several things that schemas cannot do, most importantly declaring entities."
In my opinion, schemas don't have entities because schemas, XLinks and Xfragments provide better solutions for the same needs.
XLinks replace external unparsed entities.
Schema’s named complex types substitute parameter entities.
XLinks and XFragments replace external parsed entities.
Cheers,
Dan
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic