File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes XML and Related Technologies and the fly likes HELP- simple question Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "HELP- simple question" Watch "HELP- simple question" New topic

HELP- simple question

tom horwath

Joined: Jul 25, 2001
Posts: 4
Hi everyone, I am new in XML and I have very simple question
I know that I need DTD ( external, internal ) with my XMl document in order to validete it..
I also know that I need to write XSLT document and the use XT converter to make HTML page with XML tags..visible in browsers..
My question is simple..
If I want my XML document to be validate and visible in browser do I have to make actualy 3 documents ( xml, xsl, and for example external DTD)??
I know this is very basic, but as I ve said..XML is new for me..
I appreciate any answer and help
have a good day everyone
Scott Collens

Joined: Jun 21, 2001
Posts: 20
In order to validate your document and render it in a browser it is not necessary to have all three. In your xml document, you can have an internal DTD immediately following your xml declaration (you can have comments and processing instructions in between them). Then you would only have the xml document containing your your DTD and a xsl file for rendering.
I am not sure if you can include schemas internally in an xml file, but you can with DTD.
[This message has been edited by Scott Collens (edited July 25, 2001).]
tom horwath

Joined: Jul 25, 2001
Posts: 4
Thank you very much..
So, in any case i must have xml file in order to render is that so?
I know about internal and external DTD-s..XML schemas..but thanks Man..
I agree. Here's the link:
subject: HELP- simple question
It's not a secret anymore!