File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes HTML, CSS and JavaScript and the fly likes How to title an XML document with CSS? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » HTML, CSS and JavaScript
Bookmark "How to title an XML document with CSS?" Watch "How to title an XML document with CSS?" New topic
Author

How to title an XML document with CSS?

Joshua Smith
Ranch Hand

Joined: Aug 22, 2005
Posts: 193
I'm styling a plain XML document (not an XHTML document) with CSS and viewing the document in Firefox. All the internal layout of the document looks great, but my document has no title in the browser title bar.

Does anyone know how to give an XML document a title using CSS?

The title that I want is in the document itself, so it'll just be a matter of selecting it, but I don't know how to get it into the title bar.

Thanks,
Joshua Smith


Rational Pi Blog - Java, SCJP, Dev Bits- http://rationalpi.wordpress.com
Eric Pascarello
author
Rancher

Joined: Nov 08, 2001
Posts: 15376
    
    6
CSS can not do that and you are not using XSLT?

Eric
Joshua Smith
Ranch Hand

Joined: Aug 22, 2005
Posts: 193
XSLT is great. CSS is great too. Each have their place.

In this particular instance, I'm stuck with an XML document, a DTD and a CSS style sheet.

Thanks for the reply Eric.

Joshua Smith
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: How to title an XML document with CSS?