We help IT Professionals succeed at work.
Get Started

Need Help with simple XML web site

Last Modified: 2013-11-19
I was asked to put together a brochure type 5 page web site in XML. They want it done in XML because each page uses a few dynamic fields such as company name, company logo, phone and e-mail. This web site will be hosted on clients server so I do not have any control over middle tier programming and so this is a purely client side XML web site.

the xml is fairly simple...
      <logo path="images/oem-logo.jpg"/>
      <email link="xxx@yyy.zzz"/>

all pages use this info, so if it is possible to make a centralized xml document that would be nice.

the tags need to be embedded through out the html page, some times on more then one occasion.

here is an example of how we need to plug in the values from the xml....
<head><title>Page Title</title></head>
<body leftmargin="0" topmargin="0" marginheight="0" marginwidth="0">
            <table cellpadding="0" cellspacing="0" width="800" border="0" style="position:relative;">
                        <td> header </td>
                        <td width="175" valign="top" rowspan="2">
                              <br />
                              <img src="{//logo/@path}" /><br>
                              <br />
                              <div style="text-align:right;padding-right:20px;">                                    
                                          <a href="home.xml">Home</a><br />
                                          <a href="offer.xml"><xsl:value-of select="//company"/> Special Offer</a><br />
                                          <a href="reliability.xml">Reliability</a><br />
                                          <a href="support.xml">Support</a><br />
                                          <a href="security.xml">Security</a><br />
                                          <a href="faq.xml">FAQs</a>                                    
                        <td valign="top">                        
                              <xsl:value-of select="//company"/> name, blah blah balh...
                              .... some content
                               .... some content
                               call <xsl:value-of select="//company"/> at <xsl:value-of select="//phone"/> or       <a href="{//email/@address}">email us</a>

I have put something together with my limited knowledge of XML, but it doesn't parse on Mac and older browsers.
I need a solution asap I this up as 500 point question, but if done fast and with expected result I will add a couple hundred more, I do not expect anyone to build the whole web site for me but given above, I need xml, xsl and a schema that works on majority of browsers starting with IE 5 and NS 6

Watch Question
This problem has been solved!
Unlock 2 Answers and 27 Comments.
See Answers
Why Experts Exchange?

Experts Exchange always has the answer, or at the least points me in the correct direction! It is like having another employee that is extremely experienced.

Jim Murphy
Programmer at Smart IT Solutions

When asked, what has been your best career decision?

Deciding to stick with EE.

Mohamed Asif
Technical Department Head

Being involved with EE helped me to grow personally and professionally.

Carl Webster
CTP, Sr Infrastructure Consultant
Ask ANY Question

Connect with Certified Experts to gain insight and support on specific technology challenges including:

  • Troubleshooting
  • Research
  • Professional Opinions
Did You Know?

We've partnered with two important charities to provide clean water and computer science education to those who need it most. READ MORE