At my organization we are evaluating Umbraco and the developers are loving it! However I have a question about my XSLT syntax, as I am new to this technology...
I have created a template and document type that allows for either a two-column (subnav/content) or three-column (subnav/content/sidebar) layout. Basically if the user adds content to the sidebar, then my macro will determine whether to render the third column DIV in the document. I have a similar macro that chooses the appropriate stylesheet (2- or 3-column layout) in the document head.
I can get the stylesheet to swap correctly, and I can get the sidebar content outputted to the page when applicable, but I am getting the HTML markup printed to the page (the sidebar content is added via Richtext Editor) instead of it being included normally. I believe this is a problem with my XSL syntax.
Referencing document properties in XSLT
Hi everyone,
At my organization we are evaluating Umbraco and the developers are loving it! However I have a question about my XSLT syntax, as I am new to this technology...
I have created a template and document type that allows for either a two-column (subnav/content) or three-column (subnav/content/sidebar) layout. Basically if the user adds content to the sidebar, then my macro will determine whether to render the third column DIV in the document. I have a similar macro that chooses the appropriate stylesheet (2- or 3-column layout) in the document head.
I can get the stylesheet to swap correctly, and I can get the sidebar content outputted to the page when applicable, but I am getting the HTML markup printed to the page (the sidebar content is added via Richtext Editor) instead of it being included normally. I believe this is a problem with my XSL syntax.
In the template I have:
and in my macro I have:
Any help would be great! I'm sure it's something simple.
Hi Alex,
Just add the disable-output-escaping attribute to the xsl:value-of instruction:
/Chriztian
Glorious! Thank you Chriztian!
is working on a reply...