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

How to title an XML document with CSS?

 
Joshua Smith
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Eric Pascarello
author
Rancher
Posts: 15385
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
CSS can not do that and you are not using XSLT?

Eric
 
Joshua Smith
Ranch Hand
Posts: 193
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic