Win a copy of Programmer's Guide to Java SE 8 Oracle Certified Associate (OCA) this week in the OCAJP forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Entity includes

 
Tony Morris
Ranch Hand
Posts: 1608
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I can include a file into a document using an entity declaration in the doctype then use &entity; What if within the file that I am including I also want to include a file? It seems that files that are included cannot have a doctype* - so does that mean it simply cannot be done? One cannot include a file that includes a file using entities?

* I get a parse error if I attempt it and:
http://xml.silmaril.ie/authors/includes/ "The one thing to make sure of is that the included file must not have an XML or DOCTYPE Declaration on it."
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic