[x]
Posted via EE Mobile

Search, ask, and monitor your questions on the go with EE Mobile. Visit Experts Exchange from your mobile device and never be out of touch again.

Question
[x]
Attachment Details
[x]
The Solution Rating System

With so many solutions, how can you tell which solutions are most likely to help you and which ones are not? To provide you with a tool to use, we rate our solutions based on various elements that most accurately determine if a solution is a quality solution. To explain what factors affect the solution rating, here are the elements we take into consideration when formulating our solution rating.

  • The Grade of the Solution
  • The Zone Rank of the Expert Providing the Solution
  • The Number of Author and Expert Comments
  • The Number of Experts Contributing
  • The Feedback of the Community

Your Input Matters
Because of the way the system is set up, the most important variable in this equation is you. As a member of Experts Exchange, you are able to cast your vote on the quality of the solutions in regard to how complete, accurate, helpful and easy to understand each solution is. When you provide your feedback, each rating is adjusted accordingly. So, if you see a solution that has a poor rating that you think is a good solution, let us know by rating it. As you do, the rating will be adjusted and will become more accurate for other members of our site.

If you have any suggestions that you would like to make for our rating system, please ask a question in the Suggestions Zone of Community Support.

Thank you!

9.2

balanced column html output with xsl

Asked by WingYip in Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)

Tags: xslt, column, excel

Is it posible to create a two balanced column layout in html with xslt?

I have the following xsl and xml files.

The topic section is the bit that I want to put into two balanced (as far as possible) columns.  I would prefer to end a topic in one column an dthen start the next column with a new topic.

XSL FILE
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:fo="http://www.w3.org/1999/XSL/Format">
      <xsl:output method="xml" version="1.0" omit-xml-declaration="yes" encoding="ISO-8859-1"/>
      <xsl:template match="/courses">
            <xsl:for-each select="course">
                  <p>
                        <strong>Course: <xsl:value-of select="course_title"/>
                        </strong>
                        <br/>
                        <strong>Duration: <xsl:value-of select="course_duration"/>
                        </strong>
                  </p>
                  <p>
                        <strong>Course Aims: </strong>
                        <br/>
                        <xsl:apply-templates select="course_aims"/>
                  </p>
                  <p>
                        <strong>Course Outline:</strong>
                        <br/>
                        <xsl:apply-templates select="topic"/>
                  </p>
                  <p>
                        <strong>Target Audience:</strong>
                        <br/>
                        <xsl:apply-templates select="target_audience"/>
                  </p>
                  <p>
                        <strong>Assumed Knowledge:</strong>
                        <br/>
                        <xsl:apply-templates select="prerequisites"/>
                  </p>
            </xsl:for-each>
      </xsl:template>
      <!-- DISPLAY COURSE AIMS -->
      <xsl:template match="course_aims">
            <xsl:apply-templates select="paragraph"/>
      </xsl:template>
      <!-- DISPLAY TOPICS -->
      <xsl:template match="topic">
            <p>
                  <strong>
                        <xsl:value-of select="topic_title"/>
                  </strong>
                  <br/>
                  <xsl:apply-templates select="topic_items"/>
            </p>
      </xsl:template>
      <xsl:template match="topic_items">
            <xsl:apply-templates select="topic_item"/>
      </xsl:template>
      <xsl:template match="topic_item">
            <xsl:value-of select="."/>
            <br/>
      </xsl:template>
      <!-- DISPLAY TARGET AUDIENCE -->
      <xsl:template match="target_audience">
            <xsl:apply-templates select="paragraph"/>
      </xsl:template>
      <!-- DISPLAY PREREQUISITES-->
      <xsl:template match="prerequisites">
            <xsl:apply-templates select="paragraph"/>
      </xsl:template>
      <!-- PARAGRAPH -->
      <xsl:template match="paragraph">
            <p>
                  <xsl:value-of select="."/>
            </p>
      </xsl:template>
</xsl:stylesheet>

XML FILE
<courses xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="C:\Documents and Settings\Administrator\My Documents\SoftAware XML\courses.xsd">
      <course course_id="MSXL2003_L1">
            <course_title>Microsoft Excel 2003 Level 1</course_title>
            <course_level>1</course_level>
            <course_duration>One Day</course_duration>
            <course_aims>
                  <paragraph>
                        Excel 2003 is the latest version of Microsofts spreadsheet program.  This course will introduce you to the basics.
                  </paragraph>
                  <paragraph>
                        This is an entirely hands-on course and there will be opportunity for users to raise questions about their own specific projects and requirements.
                  </paragraph>
            </course_aims>
            <topic>
                  <topic_title>Introduction to Excel 2003</topic_title>
                  <topic_items>
                        <topic_item>Starting Excel 2003</topic_item>
                        <topic_item>The Excel 2003 Screen</topic_item>
                        <topic_item>The Worksheet Area</topic_item>
                        <topic_item>The Cell Pointer</topic_item>
                        <topic_item>Mouse Pointers</topic_item>
                        <topic_item>Right-Click Shortcut Menus</topic_item>
                        <topic_item>Exiting or Closing Excel 2003</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>How to use Help properly</topic_title>
                  <topic_items>
                        <topic_item>Help Index and Contents</topic_item>
                        <topic_item>Using Find</topic_item>
                        <topic_item>Screen Tips and Whats This?</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Working with Excel Files</topic_title>
                  <topic_items>
                        <topic_item>Workbooks and Worksheets</topic_item>
                        <topic_item>Creating a New Workbook</topic_item>
                        <topic_item>Moving Around the Worksheet</topic_item>
                        <topic_item>Saving Your Workbook</topic_item>
                        <topic_item>Closing Files</topic_item>
                        <topic_item>Opening Files</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Cells and Ranges</topic_title>
                  <topic_items>
                        <topic_item>Cell Addresses</topic_item>
                        <topic_item>Range Addresses</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Entering and Editing Worksheet Data</topic_title>
                  <topic_items>
                        <topic_item>Entering Data</topic_item>
                        <topic_item>Editing Data</topic_item>
                        <topic_item>Undo and Redo</topic_item>
                        <topic_item>Selecting Cells and Ranges</topic_item>
                        <topic_item>Moving and Copying Data</topic_item>
                        <topic_item>Columns and Rows</topic_item>
                        <topic_item>Worksheets</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Introduction to Formulas</topic_title>
                  <topic_items>
                        <topic_item>Entering a Basic Formula</topic_item>
                        <topic_item>The SUM Function</topic_item>
                        <topic_item>Editing Formulas</topic_item>
                        <topic_item>AutoSum</topic_item>
                        <topic_item>Moving and Copying Formulas</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Entering Data Automatically</topic_title>
                  <topic_items>
                        <topic_item>Creating Number, date and text series </topic_item>
                        <topic_item>Save hours by Copying Formulas</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Formatting Worksheets</topic_title>
                  <topic_items>
                        <topic_item>Number Formatting</topic_item>
                        <topic_item>Alignment</topic_item>
                        <topic_item>Font Formatting</topic_item>
                        <topic_item>Borders and Shading</topic_item>
                        <topic_item>The Format Painter</topic_item>
                        <topic_item>Column Formatting</topic_item>
                        <topic_item>Row Formatting</topic_item>
                  </topic_items>
            </topic>
            <topic>
                  <topic_title>Viewing the Worksheet</topic_title>
                  <topic_items>
                        <topic_item>Using Zoom</topic_item>
                        <topic_item>Split</topic_item>
                        <topic_item>Freeze Panes</topic_item>
                  </topic_items>
            </topic>
            <target_audience>
                  <paragraph>
                        The course is designed for spreadsheet beginners with the requisite skills outlined below.  It is also useful for those changing from other programs as well as those who are self-taught and who wish to consolidate their basic knowledge before moving on to more advanced courses.
                  </paragraph>
            </target_audience>
            <prerequisites>
                  <paragraph>
                        Knowledge of the Windows operating system, file management, and keyboard layout is essential
                  </paragraph>
            </prerequisites>
      </course>
</courses>
 
 
[+][-]10/10/07 09:06 AM, ID: 20049696Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/10/07 09:18 AM, ID: 20049821Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/11/07 05:36 AM, ID: 20056223Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/11/07 08:46 AM, ID: 20058344Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/11/07 09:32 AM, ID: 20058747Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/11/07 01:43 PM, ID: 20060952Author Comment

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 30-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10/11/07 02:01 PM, ID: 20061115Expert Comment

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 30-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10/11/07 02:23 PM, ID: 20061290Accepted Solution

View this solution now by starting your 30-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

About this solution

Zones: Extensible Stylesheet Language Transformation (XSLT), Extensible Markup Language (XML)
Tags: xslt, column, excel
Sign Up Now!
Solution Provided By: Gertone
Participating Experts: 1
Solution Grade: A
 
 
Loading Advertisement...
20091111-EE-VQP-89 / EE_QW_1_20070628