<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
	<channel>
		<title><![CDATA[Latest posts for the topic "Text element: more than you can see at first look"]]></title>
		<link>http://forums.jcatalog.com/forums/posts/list/2.page</link>
		<description><![CDATA[Latest messages posted in the topic "Text element: more than you can see at first look"]]></description>
		<generator>JForum - http://www.jforum.net</generator>
			<item>
				<title>Text element: more than you can see at first look</title>
				<description><![CDATA[ Once you clicking text editor, you'll see a lot of elements, a lot of menus, a  lot of buttons, and sometimes it is not so easy to find how to use this. Hope this article helps you.<br /> <br /> Often, we have questions:<br /> <br /> [quote]Please provide me the detailed description and simple examples of how to use these functions, in XSLfast, available under:<br /> &lt;ul&gt;<br /> &lt;li&gt;Node Set<br /> &lt;li&gt;String<br /> &lt;li&gt;Boolean<br /> &lt;li&gt;Number<br /> &lt;li&gt;Date/Time<br /> &lt;li&gt;Math<br /> &lt;li&gt;Today<br /> [/quote]<br /> <br /> There are XPath functions grouped by categories. It are necessary for case you need to operate not with full string for example but with its' length. To use necessary functions from menu instead of typing, you can<br /> <br />  - select such expression within variable<br />  - click string -&gt; string-length<br /> <br /> and voila! your selected fragment is arranged by proper function call.<br /> <br /> To let it more understandable, I need to explain a bit the background of the text itself and text editor in particular.<br /> <br /> The text element is an composite; it able to contain many pieces at once. There are<br /> <br />  - static texts<br />  - variables from originating XML (XSD, DTD). <br /> <br /> So, the typical text content is<br /> <br /> -------------------------------------------<br /> First Name: {/Report/Order/FirstName}<br /> Last Name: {/Report/Order/LastName}<br /> Address: {/Report/Order/Address1} {/Report/Order/Address2}<br /> Email: {/Report/Order/Email}<br /> -------------------------------------------<br /> <br /> This is an one element with static strings (at the left of each row) and with couple of variables (every variable is arranged by figure brackets). To type variable, you can either drag such node from XML tree at the left and drop it to position you need, or simply type such text with figure brackets.<br /> <br /> Of course, such time you need to format variable's contents as links, dates, numbers, or so. To do this, you can use context menu at variable, &quot;Convert&quot; sub-menu item, and select proper view you need. In the same manner, via context menu, you can launch inspector window for variable and specify options here (&quot;Properties&quot<img src="http://forums.jcatalog.com/forums//images/smilies/8a80c6485cd926be453217d59a84a888.gif" />.<br /> <br /> Or, if you need, you can use tool bar area at the right (see icons). By clicking on that icons you can place variables with correct text and with surrounding properties. The usage as usual: select such text, click on icon, and you'll convert it into variable and with correct type.<br /> <br /> The correct usage you can see at example 01_SimpleFlyer.<br /> ]]></description>
				<guid isPermaLink="true">http://forums.jcatalog.com/forums/posts/preList/15/18.page</guid>
				<link>http://forums.jcatalog.com/forums/posts/preList/15/18.page</link>
				<pubDate><![CDATA[Fri, 10 Jul 2009 18:04:38]]> GMT</pubDate>
				<author><![CDATA[ Victor Krapivin]]></author>
			</item>
	</channel>
</rss>
