473,653 Members | 2,955 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Fallback for indent aligned table that overflows?

Hello everybody,

I'm having a little issue with tables. I want to align it according to
the left indent, but if the table is too wide, I want to fall back on a
right align. How do I detect if an error occured so I can output the
table properly?

Regards
Jean-Francois Michaud

Jun 28 '06 #1
2 1163
Jean-François Michaud wrote:
Hello everybody,

I'm having a little issue with tables. I want to align it according to
the left indent, but if the table is too wide, I want to fall back on a
right align. How do I detect if an error occured so I can output the
table properly?
What software (editor) are you using?
What XML document type are you using (name of the DTD or Schema)?
What table model does it use (HTML, DocBook, SAS...)?

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Jul 3 '06 #2
I'm transforming XML + XSLT to PostScript through RenderX XEP 4.6. The
XSLT uses some RenderX specific extensions when dealing with revision
indicators.

The editor used is open-source VEX using a custom DTD and CSS.

The tables get rendered properly when .ps is transformed to .pdf, we
have all the information needed in the custom table model we use to
render tables correctly. The issue is more with the layout engine and
XSLT it seems to me.

I fail to see why knowing which table model is used is relevant in the
context of a mechanism being available to output tables properly if
they happen to overflow on the right margin because they are indent
aligned.

I basically need an error catch mechanism of sort or some similar
process to output tables right aligned instead of indent aligned if
indent align overflows on the right margin.

Regards
Jean-Francois Michaud

Peter Flynn wrote:
Jean-François Michaud wrote:
Hello everybody,

I'm having a little issue with tables. I want to align it according to
the left indent, but if the table is too wide, I want to fall back on a
right align. How do I detect if an error occured so I can output the
table properly?

What software (editor) are you using?
What XML document type are you using (name of the DTD or Schema)?
What table model does it use (HTML, DocBook, SAS...)?

///Peter
--
XML FAQ: http://xml.silmaril.ie/
Jul 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

11
4135
by: John Wellesz | last post by:
If you are coding php using GVIM, you will appreciate this new indent script: Download there: http://www.vim.org/scripts/download_script.php?src_id=3710 or here: http://www.2072productions.com/vim/indent/php.vim
1
3039
by: hongping | last post by:
I am having problems transforming a xml doc into html with proper indenting. Here is the xslt <?xml version="1.0" encoding="UTF-8"?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:xalan="http://xml.apache.org/xslt" xmlns="http://www.w3.org/1999/xhtml">
1
8451
by: Kai Grossjohann | last post by:
I have a table which contains a top-aligned table cell: .... <tr style="height:40"> ... <td colspan="1" rowspan="2" align="left" valign="top" style="overflow:hidden;"> ...contents.explained.later... </td> ...
6
6689
by: Harlan Messinger | last post by:
A publication style guide indicates that for a table heading like the following, Table 3. Wheat and rye harvest in European countries in years that end in 3 or 7 or when a new prime minister takes office. when the heading flows over more than one line, a hanging indent should be used, such that the remainder of the heading should be left-aligned, in this example, with "Wheat", leaving "Table 3. " standing off by itself on the left.
3
1644
by: Werner Eggert | last post by:
Hello, i have a frameset with 3 rows. The top row of the frame has a table (height: 50px). This table should be aligned on bottom of the Top-Frame (height: 100px). The problem: at the moment the table is aligned on top.
0
1283
by: saabi | last post by:
How to indent length 4 a tab in IE? The text in this CDATA was some html code, it would indent length 8 a tab in IE, but I like to indent length 4 like in the original html editor, How to change the xsl code? ----------------------------------------------------------- Indent4ATab.xml <?xml version="1.0" encoding="GB2312"?> <?xml-stylesheet type="text/xsl" href="Indent4ATab.xsl"?> <htmlCode><!]></htmlCode>
1
2440
by: edai | last post by:
Hi, I have a couple of pages which display database content in form of tables. The problem I am seeing is that @ 800x600 resolution, irrespective of the number of columns in the table the table width is constant and overflows the div. I am seeing this problem in both firefox 1.5 and ie6 I have been trying to identify the problem but without any success. I tried reducing the table width ( to 10%) but it did not help. the pages are at...
1
3063
by: =?iso-8859-1?q?Jean-Fran=E7ois_Michaud?= | last post by:
Hello guys, I was wondering if anybody here had implemented a solution where Tables are aligned according to what the hanging indent tells us when there is a potential for the table overflowing in the right margin or out of the page. I did some research a while back and came to the conclusion at that time that it wasn't possible to have both (either we align on the hanging indent and if there is a potential for a table to be 6.75
3
3848
by: jerrygadd | last post by:
Hi can anyone please help? I have a need to make a table of fixed size, containing three rows, where the middle row auto expands to fill the remaining space between the top and bottom rows. Here is what I have so far, unfortunately using height:100% for the middle row blows the size of the table! <html> <head> <title>Auto expanding middle row!</title>
0
8370
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8283
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8704
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
8470
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8590
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7302
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
2707
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
1
1914
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
2
1591
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.