xlt_filter

  • Creator
    Topic
  • #48527
    Mason Miller
    Participant

      I am using xlt_filter {-37{+ }-t37-c}  This is putting the spaces at the start of the line I want it to put the spaces at the end of the line does anybody have any ideas?

    Viewing 5 reply threads
    • Author
      Replies
      • #58876
        Anonymous
        Participant

          I’m not sure what you want to do, but to put the spaces at the end of the line try this:

          xlt_filter {-e-37{+ }}

          But I recomend using TCL to do that directly…

          if using a tclproc:

          set variable “$variable            “

          or

          append variable $spaces

          or

          append variable [string repeat ” ” 37]

          If in a xlate, enter in the preproc the following line:

          set xlateOutVals [append xlateInVals [string repeat ” ” 37]]

          but remember that xlateInVals is a list, so to play safe you may want to force the lindex 0.

        • #58877
          Mason Miller
          Participant

            What I am trying to do is make the a field 37 characters if it is not 37 character then I what to add spaces if it is more than 37 character I want to take off the character at the end of the line.  I am using xlate.

            Thanks

          • #58878
            Anonymous
            Participant

              Then try in the xlate

              set xlateOutVals [string range [append xlateInVals [string repeat ” ” 37]] 0 36]

              or

              xlt_filter {-e-37{+ }-h-j37-a}

              I’m not sure if the -h is necessary, but just in case.

            • #58879
              Rentian Huang
              Participant

                Just curious, I have never seen/used this xlt_filter before, is it a custom tcl?

              • #58880
                Anonymous
                Participant

                  Is a set of TCL libraries developed by Quovadx. It was done to support the migration from the old Hublink interfaces. I don’t think Quovadx is supporting it any more, but I could be wrong…

                • #58881
                  Mason Miller
                  Participant

                    That worked great thank you very much.

                Viewing 5 reply threads
                • The forum ‘Cloverleaf’ is closed to new topics and replies.