symphony-cms

Truncate XML with XSLT

一曲冷凌霜 提交于 2020-01-22 20:00:06
问题 I have a question for the clever people of the SO community. Below is a snippet of XML generated by the Symphony CMS. <news> <entry> <title>Lorem Ipsum</title> <body> <p><strong>Lorem Ipsum</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada auctor magna. Vivamus urna justo, pulvinar nec, sagittis malesuada, accumsan in, massa. Quisque mi purus, gravida eget, ultricies a, porta in, sem. Maecenas justo elit, elementum vel, feugiat vulputate, pulvinar nec,

XSL: Is there an easy way to prevent widows?

岁酱吖の 提交于 2019-12-14 03:53:04
问题 I was hoping to call .. <xsl:call-template name="widow-fix"> <with-param name="text" select="text"></with-param> </xsl:call-template> And then it would look for the last space in the text and replace it with #160; when finalized. Should be able to support Lorem ipsum dolor sit amet, consectetur adipiscing elit. and <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit.</p> Please use a different character, like # to answer/prove, so the result when I test would be Lorem ipsum dolor sit

XML/XSLT conditional comment IE stylesheet

痴心易碎 提交于 2019-12-11 10:38:17
问题 I'm having an issue that I just can't seem to figure out. I built a website not too long ago in HTML and have recently integrated Symphony CMS and have had to change everything to XML. Originally in my head, I had a internet explorer specific stylesheet, the head looked something like this: <head> <link rel="stylesheet" href="../css/master.css" type="text/css" media="screen"></link> <!--[if IE]> <link rel="stylesheet" type="text/css" href="../css/ie.css"></link> <script src="../js/html5shiv

Truncate XML with XSLT

故事扮演 提交于 2019-12-04 04:06:44
I have a question for the clever people of the SO community. Below is a snippet of XML generated by the Symphony CMS . <news> <entry> <title>Lorem Ipsum</title> <body> <p><strong>Lorem Ipsum</strong></p> <p>Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed malesuada auctor magna. Vivamus urna justo, pulvinar nec, sagittis malesuada, accumsan in, massa. Quisque mi purus, gravida eget, ultricies a, porta in, sem. Maecenas justo elit, elementum vel, feugiat vulputate, pulvinar nec, velit. Fusce vel ante et diam bibendum euismod. Nunc vel nulla non lorem dignissim placerat. Nulla magna