XML Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreXML Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
  #1  
Old September 14th, 2003, 03:48 PM
helenvale helenvale is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 28 helenvale User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Putting the title page in XML documents

I want to create a web page in XML and format it using CSS (as XSL is not supported yet by any browser). My question is how could I put the title page on the top bar of the browser, the one that usually we put in the <head><title>my title</title></head> tag in HTML? Thanks for you help.

Reply With Quote
  #2  
Old September 14th, 2003, 06:57 PM
jharnois's Avatar
jharnois jharnois is online now
mod_dev_shed
Dev Shed God 19th Plane (14000 - 14499 posts)
 
Join Date: Sep 2002
Location: Atlanta, GA
Posts: 14,427 jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level)jharnois User rank is Major General (70000 - 90000 Reputation Level) 
Time spent in forums: 1 Month 1 Week 2 Days 13 h 11 m 11 sec
Reputation Power: 812
XSL is supported by the latest versions of the more popular browsers, but it's definately difficult to use outright. You can also use server-side languages like Perl and PHP to parse an XML file using an XSL template and return the resulting HTML. Very nice indeed.

If you use XHTML, you can mix HTML with XML and use CSS to handle the custom XML tags:
Code:
<?xml version="1.0" encoding="ISO-8859-1"?>

<!DOCTYPE html
    PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">

<head>
<title>Page Title</title>
<style type="text/css">
foo
  {
  display: block;
  }
</style>
</head>

<body>
<foo>This is element foo.</foo>
</body>

</html>
__________________
# Jeremy

Explain your problem instead of asking how to do what you decided was the solution.

Reply With Quote
  #3  
Old September 14th, 2003, 07:31 PM
helenvale helenvale is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 28 helenvale User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Thanks jharnois.

For some reason(s) I want to use pure XML, not to be combined with XHTML. Any suggestion?

I have tried using XSL to format my XML doc, but I could not display it on IE6, Opera7.11, and Netscape 7. Of couse I could display it if I process the XML and XSL using server scripting and and send the HTML to the browser. What I am saying is using XSL to format the XML file straightway as what CSS does. Thanks anyway.

Reply With Quote
  #4  
Old September 14th, 2003, 07:51 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
Here's an overview of client-side xsl support for different browsers: http://www.w3schools.com/xsl/xsl_browsers.asp It might help you debug the problems you're having.

Reply With Quote
  #5  
Old September 14th, 2003, 08:26 PM
helenvale helenvale is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2003
Posts: 28 helenvale User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Just to verify, are we talking about the same part of XSL? I am talking about XSL FO (formatting), not XSL Transformation. I've tried them on the browser and none come up with viewable page. But anyway, correct me if I am wrong. Thanks.

Reply With Quote
  #6  
Old September 14th, 2003, 11:09 PM
bricker42 bricker42 is offline
Moderator =(8^(|)
Dev Shed Intermediate (1500 - 1999 posts)
 
Join Date: Feb 2002
Location: Sacramento, CA
Posts: 1,710 bricker42 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 20 m 38 sec
Reputation Power: 8
Send a message via AIM to bricker42
I think you're right. xsl-fo isn't supported in any browsers to my knowledge.

Reply With Quote
  #7  
Old December 19th, 2003, 06:46 AM
RJW's Avatar
RJW RJW is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Australia['WA']
Posts: 10 RJW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to RJW
RE: Adding a `Page Title' with plain XML

Does anyone know if this is possible?

Reply With Quote
  #8  
Old December 20th, 2003, 11:38 PM
RJW's Avatar
RJW RJW is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: Australia['WA']
Posts: 10 RJW User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Send a message via ICQ to RJW
It needs to be done using an XSL document.

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreXML Programming > Putting the title page in XML documents


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 5 hosted by Hostway
Stay green...Green IT