Formatting of cells in a table html with XSL style sheet

HI gentlemen,

Given an XML instance and a style sheet (the relevant passages are here). It should look like the following:

Column 1: General interest, OK
Column 2: Two entrances, placed in the first and fifth row in the cell, not OK
Column 3: Two entrances, placed in the first and fifth row in the cell, not OK
Column 4: Four + three entries, each in a different line, OK

IE7 made instead, place the entries in column 2 in the line 4 and 5. It's confusing, because there is a hierarchical relationship between the columns (2, 3) and column 4.

Can someone help me by looking at the two programs? It should be simple enough, however, I can't find info how to format.

Thanks, best regards

Miklós HERBOLY

-----------------------------
The XML file:
    <scheinarten_liste V="1">                                                                                             
      <scheinart V="23" S="1.2.276.0.76.5.235" SV="1.03">  
     <scheinuntergruppen_liste V="1">
       <scheinuntergruppe V="20" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
       <scheinuntergruppe V="21" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
       <scheinuntergruppe V="23" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
       <scheinuntergruppe V="24" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
     </scheinuntergruppen_liste>
      </scheinart>                                                          
      <scheinart V="42" S="1.2.276.0.76.5.235" SV="1.03">  
     <scheinuntergruppen_liste V="0">
       <scheinuntergruppe V="41" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
       <scheinuntergruppe V="42" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
       <scheinuntergruppe V="43" S="1.2.276.0.76.3.1.1.5.1.19" SV="1.03"/>
     </scheinuntergruppen_liste>
      </scheinart>                                                          
    </scheinarten_liste>                                                                                            
--------------------------
The XSL stylesheet:
      <!-- Scheinarten-Liste -->
      <table border="1">
        <caption>Scheinarten-Liste</caption>
        <tr>
          <th><xsl:text>Scheinarten zulässig?</xsl:text></th>
          <th><xsl:text>Scheinart</xsl:text></th>
          <th><xsl:text>Scheinuntergruppen zulässig?</xsl:text></th>
          <th><xsl:text>Scheinuntergruppe</xsl:text></th>
        </tr>

        <xsl:for-each select="pe:bedingung/pe:scheinarten_liste">
       <tr>
            <td><xsl:value-of select="@V"/></td>
         <td>
              <xsl:for-each select="pe:scheinart">
                <xsl:value-of select="@V"/><br/>
           </xsl:for-each>
         </td>
         <td>
           <xsl:for-each select="pe:scheinart/pe:scheinuntergruppen_liste">
                <xsl:value-of select="@V"/><br/>
           </xsl:for-each>
          </td>
         <td>
           <xsl:for-each select="pe:scheinart/pe:scheinuntergruppen_liste/pe:scheinuntergruppe">
                <xsl:value-of select="@V"/><br/>
           </xsl:for-each>
         </td>  
       </tr>
     </xsl:for-each>
      </table>
      <br/>

Hello

IE7 made instead, place the entries in column 2 in the line 4 and 5. It's confusing, because there is a hierarchical relationship between the columns (2, 3) and column 4.

It is not related to IE in particular.
By summing the values of brother independently, relationship with parents is lost, so you can't wait for 'magic' the poster correctly HTML rendering engine.

A solution would be to display each value in a separate cell (TD element), but it's a little tricky.

Here is an example:

XML document:





 
  
    
    
    
    
  
 
 
  
    
    
    
  
 


StyleSheet:



  
  
    
      
      
        
            
            

            
              
              

              
                
                

                
                  
                      
                        
                          
Scheinarten-Liste
Scheinarten zulässig? Scheinart Scheinuntergruppen zulässig? Scheinuntergruppe

Result:


 
  
Scheinarten-Liste
Scheinarten zulässig? Scheinart Scheinuntergruppen zulässig? Scheinuntergruppe
1 23 1 20
21
23
24
42 0 41
42
43

Have you also considered using an unordered list (UL/LI Elementshtml)?
It would be much easier to make the hierarchical structure of data.

Tags: Oracle Development

Similar Questions

  • Can someone explain please HTML tags and CSS styles and how to use them with external style sheets?

    I've never used an external stylesheet before and I know that I need to learn, so try it now. I've linked my page etc, but I do not understand why the html tags do not work... can I put only CSS styles in there? Can someone explain simply the best practices here? Thank you very much indeed.

    Ahhhhhhh! I have it! Thank you!

  • Arrgh, needing help with CSS style sheets

    Please see the source code for these pages and tell me if you can figure out where I'm missing something.

    My new pages marriage until now look like this:
    http://www.chuckbryant.com/Jan/anew-0217A.htm
    (consistent with the rest of the folder/jan)

    Because of all the foliage in most shots, I WANT the wedding pages to have the same style of deep-green base than my WCYC pages - for example:
    http://www.chuckbryant.com/WCYC/WCYC_Home.html

    I even started with a brand new page - no style whatsoever. I went to the Page Properties, set up as I wanted to, with NO imported or linked style either - then when I downloaded it, or even totally outside the record jan, it somehow caught / jan pages' properties (figure of pink FF99FF)! How the #% $^ & * @! he did THIS?

    I tried to put in the WCYC style both as an import and a link. Today from the page WCYC Finally I get it - it's almost everything is OK, but it still has the rose outside the table:
    http://www.chuckbryant.com/Jan/anew-0217B.htm

    Add to the frustration: when I hit REFRESH, for a moment, I'll see the flash of green all around, but then returned the pink background. Somehow the anew0217 pages read the Green style deep, but they hold on him.

    . . . . . . . (insert mild expletives here)

    I'm still holding off on building and load the rest of the wedding pages until I have correctly attributed WCYC style (and my lovely wife getting a little upset that I did not yet!) So please help extend my honeymoon phase by sharing simple, clear explanation from here screwing in this place and specific instructions on what I need to do.

    Understand that I entered in this return of three years, with a unique college using MX 2004 course. I created most of my pages and then, when I had more clearly technical aspects in mind. Since then, I've forgotten a lot of details, and I'm sure that I slipped in some sloppy work habits, and probably the gobs of my source code has mutated into something wrong. Please do not forget my limits. I don't remember details that experienced web site designers take for granted, so I may need to ask for clarification on some things that seem glaring more knowledgeable people here.

    Thank you very much!

    > http://www.chuckbryant.com/jan/anew-0217B.htm

    http://www.chuckbryant.com/Jan/wcyc.CSS is 404 not found.

    consolidate and clean.

    There are also css inside a library item.

    Suggestion: Open the library item and removes the styles.
    Then use the CSS panel to set a design time stylesheet - one you use
    to put all the information in style for this section.

    then styles will appear when you change the .lbi file and are available
    to apply and can be changed.




    delete all the above

    tag in the lbi file.

    put or do these rules of css in the main css file, which I think is
    /Jan/Jan.CSS or/WCYC/wcyc.css, not sure.

    simplify and consolidate the

    --
    Alan
    Adobe Community Expert, dreamweaver

    http://www.Adobe.com/communities/experts/

  • sites with cascading style sheets do not load correctly. They do it on IE and another machine with an older version of firefox

    I use firefox 7.0.1 and I'm unable to some loading pages. One site says to turn on CSS. I must have changed something, but I don't know what because it worked on this version of firefox until a couple of days. Sites work on IE on this machine. I am old version of firefox on a laptop and it works just as well. Any ideas of what I changed. I was watching addons, but I'm not sure that this is what has changed

    Thanks for all the ideas to solve problems

    George Fowlston

    First try to clear your cache and cookies for the site problem

    If you think you something changeed, throw an eye to

    • (May need to hit the Alt keyboard key to display the menu bar) View-> Page Style
      and make sure that you have selected (Basic Style)

    If this does not work, try Firefox Firefox to solve the issues in Safe Mode by pressing the SHIFT key when you start it, or by using the option help-> restart with modules disabled

    • do not change in the first window, just click on continue
    • only use the default theme
    • If the problem persists, then still in safe mode disable all plugins
  • Using find/replace to find empty cells in a table

    I'm working on several catalogues pages where we apply styles of our catalogues. The find/replace feature really helped do, but I can't seem to find a way to find an empty cell in a table to add a style to only the cells that are empty. If someone knows a way to do this, saving me a bunch of times and I would be very grateful!

    Hello

    With GREP, this regex can probably help you: (?-m) ^ $

  • Urgent! Table HTML - dependent screen browser Flash animation cell

    Hi all

    I wonder if anyone has experienced the same problem I have (note, Windows XP, Dreamweaver 4).
    Let's look at the HTML (gross) attached: a simple HTML table to a column and two rows is built to contain a link to the banner image and a link of banner animation Flash in each cell consecutively.

    The Flash animation works normally when the HTML page is seen in IE and Opera, until either it is placed inside a table cell.
    Inside the cell the flash animation seems to disappear, but I suspect that it is reduced to a pixel of image 1 in height, as it shows pretty much using Opera.

    Is there something I'm missing? Of course, the code looks right to me - maybe there's a browser setting I'm missing?

    Any help apprceiated - I need to implement this code...

    DAZ

    Hi Alan,

    Don't think it was the problem (percentages used nationally to the users browser?) ... If you have set thinking me!

    Tired before, only so just remember that when I was experimenting with the definition of the properties of Table image was sometimes visible!

    Short version: what formatting a cell that contains a Flash animation doesn't do not fill the field H or use % (even if you are supposed to!), use instead the pixels - Flash image collapses / disappearance. Blank and % are fine anywhere else...

    (I type a long answer before, but it was eaten by the monster of forum )

    Someone ' one/i will be probably understand why it is so or maybe I just rediscovered the wheel here - but this is not really important now - because my Flash animation now makes the same on IE, Opera and FireFox!

    So thank you for your help!
    Daren

  • Not all cells in the table is formatted but just the first.

    var doc = app.activeDocument,

    _pages = doc.pages, i, j, k, l.

    _textframes, _tables _row, _cell, rownum;

    for (i = 0; i < _pages.length; i ++) {}

    _tables = _pages.item (i). Tables;

    for (j = 0; j < _tables.length; j ++) {}

    _Row = _tables.item (i) Rows;

    rowlen = _row.length;

    for (k = 0; k < _row.length; k ++) {}

    _cell = _row.item (i) .cells.

    for (l = 0; l < _cell.length; l ++) {}

    _cell. Item (i) .appliedCellStyle = "CellA ';

    _cell. Item (i).paragraphs.everyItem () .appliedParagraphStyle = 'ParA ';

    }

    }

    }

    }

    Hi, I'm stuck in this code. I want to format all the cells of the table, but using the code above only the first cell of the first row is updated with the format. The other problem is that, in all the lines, it is a cell unique couting. "CellA" and 'ParA' is the cell styles and paragraph styles I made in my pc. I'm relatively new to indesign scripting and try to learn something new.

    Hello

    1. There is no property, '.table' for 'page' pages.item (i) .tables returns error;

    2 Javascript is case sensitive so watch start a property with a small letter names ("Tables" are false);

    3. There is no need to browse the pages, tables, lines and cells - just use . everyItem().

    so

    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().appliedCellStyle = "CellA";
    app.activeDocument.stories.everyItem().tables.everyItem().cells.everyItem().paragraphs.everyItem().appliedParagraphStyle = "ParA";
    

    should work.

    Jarek

  • I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    I get videos from cell phones of the people with a type of file like 3GP. I need to know how to save and change the format so I can open them.

    Trying to convert to the. WMV format:

    There are many converters available on the net... some
    free... some detail.

    The following freeware converter is just one example:

    (FWIW... it's always a good idea to create a system)
    Restore point before installing software or updates)

    Format Factory (freeware)
    http://www.videohelp.com/tools/Format_Factory
    (the 'direct link' is faster download)
    (the file you want to download is: > FFSetup295.zip<>
    (FWIW... installation..., you can uncheck
    ('all' boxes on the final screens)
    (Windows XP / Vista / 7)

    First, you will need to decompress the file or just open the
    Drag > FFSetup295.exe< out="" of="" the="">
    and drop it on your desktop. To install left click.

    Next, after the download and installation of Format
    Factory... you can open the program and
    left click on the toolbar, the "Option" button and
    "Select an output folder to" / apply / OK.
    (this is where you find your files after they)
    are converted)

    Drag and drop your video clips on the main screen...

    Select "all to WMV" / OK...

    Click on... Beginning... in the toolbar...

    That should do it...

    Good luck...

  • Unable to get the elements placed at the top and bottom of the cell of the table with vertical-align

    Hello

    I have a three-day educational courses in the list table. In each cell, I have the title of the presentation at the top with the name of the speaker below. Because some titles are longer than others, the line grows (rightly) as longer securities are covered in Word. So far so good. Now, I want all the titles to always start at the same distance from the surface of the cell (I use padding 2px) and names of speaker all be equidistant from the lower border, (i.e. 2px).

    I tried to place the title elements with < span style = "vertical-align: top" > </span > presentation title

    and the name of the speaker as < span style = "vertical-align: bottom" > name </span > Speaker

    and I tried the same method with < div > and < p > tags. Items don't move. Can someone tell me how to make the names of the speakers will be all aligned at the bottom of each cell?

    Here is an example of the code table I've tried:

    (Thanks!)

    < table style = "text-align: center;" do-family: Arial; background-color: #f7d49c; "border ="2"bordercolor =" #467E9F "cellpadding ="2 ".

    "cellspacing ="0"width ="900">"

    < tbody >

    < b >

    < td width = "300" > < span style = "" vertical-align: top; "> This is a short title </span > < br / >"

    < span style = "vertical-align: bottom" > name </span > < table > Speaker

    < td width = "300" > < div > is the title of another presentation, which is really long because some of the presentations have titles like that < / div > < br / >

    < div style = "vertical-align: bottom" > Speaker name < / div > < table >

    < td width = "300" > < span style = "vertical-align: top" > This is yet another presentation with a semi-long title </span > < br / >

    < span style = "vertical-align: bottom" > < table > </span > Speaker's name

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < b >

    < td > < table >

    < td > < table >

    < td > < table >

    < /tr >

    < / tbody >

    < /table >

    By default, the content of the table cell is average aligned.  You need not do anything.

    If you want your cell vertically aligned up or down, you can specify it in your CSS.  These effects all the text inside the cell.   It's all or nothing.

    Some text that is aligned at the top Some bottom-aligned text

  • With the last update, I am unable to merge cells in a table and Ive tried Split and Live view.

    With the last update, I am unable to merge cells in a table and Ive tried Split and viewing live, all the tutorial and manuals say to do in Design view, which is no longer available.  How to merge cells in a table now?

    To get the fashion Design back in a checkerboard to fluid...

    Close all other files, open the fluid grid css and add the X below:

    /*

    Properties Grid Dreamweaver fluid

    ----------------------------------

    DW-num-CLO-mobile: X 4;

    DW-num-CLO-Tablet: 8;

    DW-num-OCOL-Office: 12;

    DW-gutter-percentage: 25;

    =====================================

    Then save and close the file.

    DW restart and you should have mode Design from here out on all files using this fluid grid .css file.

  • Value of the cell in a table cannot access

    Hello

    I'm not much more expert in oracle apex. Please help me with this problem.

    I use APEX 4.2.

    I have a master form (FORM1) where I have some text fields and a tabular presentation where the data in the child table to appear (product ID, product name). Each line has a check box.

    I added a new button in the region in a table. I want to make is that:

    Select a line in the form of tables (per box), and then click the button

    System must open a form (FORM2) with the ID and name pre-populated from the line selected tabular form (FORM1). In other words, I'm wearing on data from cells in the form of FORM1 to FORM2.

    I tried "with the value" which is one of the option Button in the apex, but in this case, it does not work. because the cells in a table of master / detail are not recognized as part of the page (meaning fields text beginning as P1_Details, P1_Total. etc, but the name of tabular form fields begins without page number as Product_ID, Product_Name)

    Sorry for the long haul. I tried to explain as much as I could. Please help me.

    Thank you

    Mohammad

    The easiest way is to change the boxes to use the links. You can format the column link to direct to a page with the values from the current row. It's about how master detail, you already have should work.

    If you must have check boxes, you will need the user to select more than one face. I would like to option buttons if you need to have the user select the line and then click on the button.

    To get the selected value, you'll need javascript or dynamic action and is very well the link Scott.

    Greg

  • Fill cells in a table color % depending on the cell content

    Hello.

    I'm working on a document with a large number of tables filled with percentages. Arrays are originally a Word document and the table cells are colored according to their content: a value of 20% on the cell a 20% tint. This is done automatically on the Word document via a conditional formatting option that applies to a graduated color scale. Is it possible to do this in InDesign? I tried to place the tables and tried all the options, but the color is not imported. Maybe a script or a style GREP?

    Thank you.

    A very smart script here...

    Script to create the heat map in Indesign 5.0 PC?

    P.

  • Right aligned and then centered in the cell of the table - indesign cs 5

    Hi all

    Does anyone know how can I get the numbers right aligned, so the zeros are all below the other. And then the center of the table cell.

    I use a paragraph style is aligned to the right. This is the paragraph defining the cell style.

    Any help would be appreciated.

    Thank you

    Mau

    InDesign CS5

    You can set the position of the tab within the paragraph style, so no, you do not need to edit each cell, but you do not have to use the text aligned to the left, and if you want that all the place line numbers correctly you need to use a font with tabular, rather than numbers proportional to make them all the same width (and for tables rather than oldstyle figures is probably also a better choice).

    When you look at the tabs formatting options that you have left, right, centered and aligned decimals (which can be any character of your choice, but you want the period). When you use the decimal tab aligned, everything you type will behave as if the tab is a tab that is aligned to the right - it will start at the position of the tab and move to the left with each additional character - until you type the character that you chose for the alignment. From there text will move to the right of the alignment. This aims to make things like the columns of numbers with decimals.

    In a table, the tab character is implied, so if the only thing in the cell is your setting of the tab in the style number is sufficient and it will work just as soon as you start typing. If there is other text before alignment numbers that must be the left hard, however, you will need to type, then manually insert a tab in the menu Insert special characters (or create a new shortcut key to insert tabs in tables) to force the text to the left margin and keep the numbers aligned on the decimal point. You can't just hit tab within a cell to add the tab - it reports ID to pass to the next cell.

  • Gaps between cells in a table

    Hello, I'm a long time GoLive man, new in Dreamweaver.

    My problem is that there are gaps between cells in a table, as I try to create.

    I searched the forums and found something on Dreamweaver, do weird things to cells with a wingspan of a. One of my nested tables has that. Then I followed the suggestion included and turned my cells split in a 2 column table with a table nested inside the cell the more to the right, but I still have gaps.

    Looking at the code, it does not appear that something is wrong. I even checked my external .css file to see if the rules had any padding or spacing that may throw my picture off, but so good that, as well.

    Does anyone have any suggestions?

    Thank you

    Mike

    Here is the code

    <html>
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <title>Untitled Document</title>
    <link href="basics.css" rel="stylesheet" type="text/css">
    </head>
    
    <body>
    <table width="100%" height="100%" border="0">
      <tr>
        <td><table align="center" valign="top" width="747" height="100%" border="0">
          <tr>
            <td><table width="100%" border="0">
              <tr>
                <td width="246"><img src="images/logo_top_246x101.jpg" width="246" height="101" alt="Public Safety Software"></td>
                <td width="501"><table width="100%" border="0">
                  <tr>
                    <td><img src="images/banner_r_top_501x34.jpg" width="501" height="34" alt="Court Safety"></td>
                  </tr>
                  <tr>
                    <td><img src="images/banner_r_mid_501x34.jpg" width="501" height="34" alt="Jail Software"></td>
                  </tr>
                  <tr>
                    <td><img src="images/banner_r_btm_501x33.jpg" width="501" height="33" alt="Fire Department Software"></td>
                  </tr>
                </table></td>
              </tr>
            </table></td>
          </tr>
              </table>
        </td>
       </tr>
    </table>
    
    </body>
    </html>
    

    I searched the forums and found something on Dreamweaver, do weird things to cells with a wingspan of a. One of my nested tables has that. Then I followed the suggestion included and turned my cells split in a 2 column table with a table nested inside the cell the more to the right, but I still have gaps.

    Looking at the code, it does not appear that something is wrong. I even checked my external .css file to see if the rules had any padding or spacing that may throw my picture off, but so good that, as well.

    In fact, there are several glaring mistakes-

    1. the tables do not have a height.  This means that the height of the table tag attribute is a specification that is empty of sense and in fact (and has always been) invalid HTML.  Delete them - while their presence is not responsible for your shortcomings, resulting is not to validate your page.

    2. the

    tag has several attributes that * should * be specified.  If they are not, then you will get the default value which is not only not the same from one browser to another, but almost always is not what could be specified.  These attributes are 'border', 'cellpadding' and 'cellspacing '.  I guess it's the omission of what is giving you the gaps you mention. If you want to reset, you must set them explicitly, for example,.

  • How to change the default alignment of text in the cells in a table on the demand for numbers?

    I'm new to Mac. I own a MacBook pro MF839HN/A and currently using the 3.6.2 release NUMBERS (2577). I want to know if I can change the default alignment of text in the cell in a table of NUMBERS application? Also, when I select all the cells in a table to change their alignment, I can only change the horizontal alignment of the text and not the vertical alignment. To change the vertical alignment of the text in a cell, I have to select them individually. Help me with two questions.

    The only way I know is to create a table that is set up as you like, then save the empty document as a template customized by using the menu item "file > save as template:

Maybe you are looking for

  • Apple TV: Amazon ready yet?

    I need to update one of my Roku units or buy an Apple TV.  I have a lot of Amazon Prime. Any ideas on when the Amazon app will be available for Apple TV?  I have not heard anything about it since around December and apparently he was imminent at that

  • Windows 10 crashing, but don't know why.

    In the last two days, 10 Windows fails to start when passing of OS X Windows in Bootcamp.  I recently installed the last update of OS X El Capitan and Windows Open fine Bootcamp. After about 3-4 minutes in Windows - it has been downloaded and install

  • software download update impossible

    Bought a used still new in box touchpad. Great job on the dowload MISTAKEN reads as follows: The update of the adobe reader cannot be installed and the current version is unusable. Please restore the original version. It will allow me to restore but

  • Lead data transfer to PC blackBerry Smartphones via USB

    I said to my Curve 8900 to "stop asking me" if I wanted to the handset to a hard drive.  And it defaults to 'no '.  How can I get that back?

  • How can I control the configuration of Win 7 library with GPO/GPP?

    Hello We would like to be able to add/remove central controls the administration of libraries in win 7 in our company, via GPO or PPM. The only articles I can find suggests to change the library-ms files and copying on each machine when connecting or