[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSL Formatting Problem

Subject: RE: XSL Formatting Problem
From: "Jack Cane" <jwcane@xxxxxxxxxxx>
Date: Tue, 26 Feb 2002 10:30:31 -0500
jack cane
Do you mean that a tag like <html:center> may confuse IE, and that the tag
can also be written as just <center>?

Can you recommend a good online reference containing syntax rules such as
this?

jwc

-----Original Message-----
From: Jeni Tennison [mailto:jeni@xxxxxxxxxxxxxxxx]
Sent: Tuesday, February 26, 2002 8:08 AM
To: Jack Cane
Cc: xslList Post
Subject: Re:  XSL Formatting Problem


Hi Jack,

> Would like to center some text. Neither of the following works:
>
>         <html:p align="center">
>           <xsl:value-of select="DissTitle"/>
>         </html:p>
>
>         <html:p><html:center>
>           <xsl:value-of select="DissTitle"/>
>         </html:center></html:p>
>
> The lines,
>
>         <html:title>
>           <xsl:value-of select="DissTitle"/>
>         </html:title>
>
> were intended to act as the conventional title tag, which should
> place the content in the browser's title bar. Instead, the content
> is rendered on the browser content window, and the title bar
> reflects the path and file name on the local machine.

It sounds as if your browser is having difficulty understanding the
HTML that you're using. What I suggest you do is try to write (by
hand) an HTML page that works, and then try to generate that HTML page
from your XSLT stylesheet. Otherwise it's easy to get confused between
what's not working because of the HTML and what's not working because
of the XSLT.

I can think of three things that might be happening, and that you
could try changing when you create the HTML page. First, it might be
that your browser doesn't recognise deprecated attributes and elements
such as the 'align' attribute and 'center' element. Second, it might
be that your browser is getting confused because of the 'html' prefix
that you're using on all your elements -- if you used the default
namespace instead, you might be better off. Third, it might be that
your HTML document isn't structured properly, and that's throwing off
the browser's formatting routines.

Cheers,

Jeni

---
Jeni Tennison
http://www.jenitennison.com/



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.