Developer forum

Forum » Development » Template parsing bug?

Template parsing bug?

Martin Grønbekk Moen
Reply

I have a problem with the template parser, it mess up som of my content.

 

The following HTML:

                    <div class="menu style-1">
	                    <ul class="menu">
		                    <li><a href="#"><i class="icon-home"></i>Homes</a></li>
		                    <li>
                                <a class="arrow" href="#"><i class="icon-beaker"></i>Full Width</a>
			                    <div class="mega-menu full-width">
				                    <div class="col-1">
					                    <h4>Web Hosting</h4>
					                    <ol>
						                    <li><a href="#">Distributed Storage</a></li>
						                    <li><a href="#">Linux Hosting</a></li>
						                    <li><a href="#">Windows Hosting</a></li>
						                    <li><a href="#">Amazon S3</a></li>
						                    <li><a href="#">Virtualization</a></li>
					                    </ol>
				                    </div>
			                    </div>
		                    </li>
	                    </ul>
                    </div>

Become like this after beeing parsed:

 


                    <div class="menu style-1">
	                    <ul class="menu">
		                    <li><a href="#"><i class="icon-home"></i>Homes</a></li>
		                    <li>
                                <a class="arrow" href="#"><i class="icon-beaker"></i>Full Width</a>
			                    <div class="mega-menu full-width">
				                    <div class="col-1">
					                    <h4>Web Hosting</h4>
					                    <ol>
						                </ol>
				                    </div>
			                    </div>
		                    </li>
                           |<li><a href="#">Distributed Storage</a></li>
						    <li><a href="#">Linux Hosting</a></li>
						    <li><a href="#">Windows Hosting</a></li>
						    <li><a href="#">Amazon S3</a></li>
						    <li><a href="#">Virtualization</a></li>
	                    </ul>
                    </div>

 

Looks like it is unable to parse the ol tag?


Replies

 
Mikkel Ricky
Reply

Which version of Dynamicweb are you using?

 
Martin Grønbekk Moen
Reply

I'm using 8.2.1.10.

 

It worked correctly as long as I put the code into an XSLT template, and then include it in the master page.

 
Mikkel Ricky
Reply

I cannot reproduce this error. Can you post your full template or a link to a page showing the error?

 
Nicolai Høeg Pedersen
Reply

Is it the template parser or the layout parser? This is a layout I guess?

 

And does your layout file validates?

 

You must be logged in to post in the forum