XSL Processing not correct?

Michael's Avatar

Michael

20 Oct, 2010 10:29 PM

I have attached two files:
1) XML - This is the xml code that is generated by the CMS inside our index block.
2) XSL - This is the xsl code we are using to transform the XML.

Please note that the first two lines of the XML file have been added by me in order to test XSL transformation inside a browser. This browser test correctly renders a nested unordered list as we intended.

Unfortunately, when Cascade server is responsible for performing the XSL transform the list elements are malformed.

Thank you for any assistance!

  1. 1 Posted by Penny on 22 Oct, 2010 06:03 PM

    Penny's Avatar

    I just tested your XML and XSL in my Cascade instance, minus the two tags at the top of the included XML file. All seemed to work fine for me.

    I got the following output:
    `

    <h3><a href="default.htm">TELS</a></h3>
    <ul id="tree">
        <li><a href="/v4content/tels/default">Home</a></li>
        <li>
            <span><a href="#">Technology Resources for Students</a></span>
            <ul/>
        </li>
        <li style="currfolder">
            <span><a href="#">Technology Resources for Faculty</a></span>
            <ul>
                <li style="currpage">
                    <a href="/v4content/tels/faculty/default">Home</a>
                </li>
            </ul>
        </li>
        <li>
            <a href="/v4content/tels/staff">Technology Resources for Staff</a>
        </li>
        <li>
            <a href="http://telswebletter.blogspot.com/">TELS Webletter</a>
        </li>
    </ul>


    `

    I might suggest creating an XML block from the XML you include in this same zip and the xslt you provided and see if you get an issue. Were you getting an error alerting you that the content was malformed?

  2. 2 Posted by Ross on 02 Mar, 2011 09:09 PM

    Ross's Avatar

    Michael,

    Did Penny's help resolve your issue?

    Thanks,

    Ross

  3. Ross closed this discussion on 02 Mar, 2011 09:09 PM.

Comments are currently closed for this discussion. You can start a new one.

Keyboard shortcuts

Generic

? Show this help
ESC Blurs the current field

Comment Form

r Focus the comment reply box
^ + ↩ Submit the comment

You can use Command ⌘ instead of Control ^ on Mac