Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How should i do this...
#1
How can i add a table looking something like this in the docs:
Code:
Bit in numeric_value1  Bit in numeric_value2  Bit in result
        0                      0                    0
        1                      0                    0
        0                      1                    0
        1                      1                    1

?
Reply
#2
That's a new one. I'll propose this structure:

Code:
<chart>
     <column>
           <a>0</a>
           <b>0</b>
           <result>0</result>
     </column>
     <column>
           <a>0</a>
           <b>1</b>
           <result>0</result>
     </column>
     <column>
           <a>1</a>
           <b>0</b>
           <result>0</result>
     </column>
     <column>
           <a>1</a>
           <b>1</b>
           <result>1</result>
     </column>
</chart>

That shouldn't confuse a script too much. If rows, use a horizontal layout. If columns, use a vertical. Else, crap out with an error.

Don't do it just yet. If someone has any suggestions, I'd gladly take them. I'm toying with the idea of replace "row" and "column" with "group" and adding a layout attribute, but I don't know.

Some people may prefer "col" to "column" I do a lot of cutting and pasting when doing html/xml though, so I prefer readability. However, some people may like "col" better, and I can live with that if you prefer it also.

Also, use alias for any wierd column names, as described in the manual.
Reply
#3
I would go for readability
Reply
#4
Oh, my goodness, I'm a nutbag. I can't believe I mixed up my own language.

Use the 2d chart format described in the documentation guide.
That is, this:
Code:
<chart>
     <row>
           <a>0</a>
           <b>0</b>
           <result>0</result>
     </row>
     <row>
           <a>0</a>
           <b>1</b>
           <result>0</result>
     </row>
     <row>
           <a>1</a>
           <b>0</b>
           <result>0</result>
     </row>
     <row>
           <a>1</a>
           <b>1</b>
           <result>1</result>
     </row>
</chart>
Reply
#5
Hi,

The code in the very first post still works OK. That is how I would recommend doing it.

Thanks,
Jamie
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)