Two nearly identical index block/format setups. One outputs system-region-tag, the other doesn't

rory.reiff's Avatar

rory.reiff

Sep 23, 2010 @ 09:19 PM

For my 1 millionth confused XSLT post...

Attached are two formats to create two different include files. One outputs correctly, while the other outputs the <system-region name="DEFAULT"> as it's wrapper. Why is this? I have fiddled for awhile and can't seem to come across any major difference in the two formats that would warrant this erratic behaviour. Help is greatly appreciated as to the reasoning that this is happening...we are continually doing more with includes and I keep running into this issue :(

  1. 1 Posted by Penny on Sep 24, 2010 @ 05:57 PM

    Penny's Avatar

    The XML that is output for your page must have a root node. In other words, it must have one encapsulating XML tag as a starting point. Cascade will throw in the system-region tag around your output if you have not done this. In your format-with-region, you have multiple div class="story" tags and no single xml tag wrapping them. In the other format, div id="footer" wraps everything as your root node.

    I hope this makes sense. Please let me know if you have any questions.

  2. Tim closed this discussion on Oct 06, 2010 @ 02:18 PM.

Discussions are closed to public comments.
If you need help with Cascade CMS please start a new discussion.

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