Skip to main content
1-Visitor
August 18, 2016
Solved

update ufe with value

  • August 18, 2016
  • 1 reply
  • 2709 views

Hi All.

is it possible to set / assign ufe element to a value.

Regards,

Sriram

    Best answer by ClayHelberg

    So does that mean that every chapter has an <intro> element? You might want to try it with

         count(preceding::chapter) + 1

    to see whether that works better. (If your division element is named something other than "chapter", of course modify the XPath to reflect that.)

    Are you trying to put this generated text into a formal page header or footer? If so, then XPath won't work, because headers and footers don't have an element context in the same way that flow text elements do. In that case you'll probably have to rely on Arbortext's built-in numbering features, as the TOC does.

    As for numbering in the way the TOC does it, you would have to enable numbering for the thing you are styling. See the Help Center for more information about division numbering (look for the topic "Labeling and Numbering Divisions" as a good place to start).

    --Clay

    1 reply

    1-Visitor
    August 18, 2016

    to set the UFE to any value using Xpath or  other and using the ufe with new value.

    18-Opal
    August 18, 2016

    Hi Sriram--

    It's not quite clear what your goal is here, but if it helps: in the Styler Generated Text dialog, on the Insert menu, there is an option to insert an XPath string. So, if you are trying to build something like this:

    <_ufe:MyUFE>{some string generated using XPath}</_ufe:MyUFE>

    You can just insert the UFE you want, put the caret inside the UFE, select Insert->XPath String, and define the XPath expression you want to use to get the string.

    If you have something else in mind, perhaps you could elaborate what you are trying to do with an example.

    --Clay

    1-Visitor
    August 19, 2016

    Hi Clay,

    My aim is to show the Chapter Page in pdf. The source xml does not have any tag like "Chapter Number" to show the number.

    So i am bit lost to achieve the Chapter numbering (say 1 for first Chapter , 2 for Second and so on...).. The chapter page is build with pageset and regions but the incremental numbering for chapter is where I am stuck.

    My idea was to initalize a ufe-element with variable 'count=0'.And then to increment it accordingly. But not sure to do it. Another alternative i tried was to modify the source-edit but it seems quiet complex. A UFE element is not allowing to associate to "Element Number" from the Gentext.

    Can you pls suggest a solution.

    chap.jpg

    Regards,

    Sriram Rammohan