[Logo] Forums for GrailsFlow, Weceem, XSLfast
  [Search] Search   [Recent Topics] Recent Topics   [Hottest Topics] Hottest Topics   [Members]  Member Listing   [Groups] Back to home page 
[Register] Register / 
[Login] Login 
Date/Time formatted within other blocks  XML
Forum Index » XSLfast Forum
Author Message
Anonymous



Hi,

Is it possible to do something similar to below?

From what I have found so far date/time blocks can only have leading/trailing text or xpath values.

I have been playing with it for a while and so far have found to be able to do this only by making the date block a template, converting a call template block to XSL and putting the text in accordingly, however this has only allowed me to put multiple dates in the same block and change the text for the whole block. I don't know XSL so would rather avoid having to learn how to code it to achieve what I need.
Victor Krapivin



Joined: 04/06/2009 10:12:44
Messages: 54
Online

If we understand correctly, you can do the following:

  • Place text element, and arrange texts you need.
  • With drag and drop, place XPath variables you need (it will be shown as {Foo}).
  • For every variable, use context menu -> convert to select representation you want
  • In context menu, use properties window. Here you can specify exact view for your data, including font and font styles.
  • In the same inspector window, you can specify IF clause. If this IF is true, element will be visible; otherwise is not.

By the way, font, colors and font styles can be applied directly to variable: move text caret inside it and use tool bar to specify colors / fonts.

Hint: if you need to show such piece of static text conditional, you can specify it as variable like this:

It will be operational as variable, including for-each and IF specifications.

This message was edited 1 time. Last update was at 03/12/2009 13:42:20


Best regards,
Victor Krapivin
[WWW]
 
Forum Index » XSLfast Forum
Go to:   
Powered by JForum 2.1.8 © JForum Team