Quantcast
Channel: PTC Community : All Content - Arbortext
Viewing all articles
Browse latest Browse all 1645

How can get results of xpath that is querying within the page to use in footer?

$
0
0

Hello Everybody,

 

A footer page is defined on Generated Contents tab of Arbortext Styler. Footer should contain an attribute conten valuet within the page. By selecting "Insert> Attribute Content" within "Generated Content" window, I can select the value based on the occurrence (1st,2nd,..., last) of the element. That's good but not enough for the customer requirement. The footer should show the greatest value of attributes within the page.

So I write the statement: (//lep/@lep_date[not(. < //@lep_date)])[1]

The statement selects max value of lep_date attribute of lep elements within an xml document.

 

When I put this statement within ElementContentPage as shown on the image, the text could not be generated, and I don't see any error messages regarding it.

 

When I put this statement within XPathString all footers show the same max value of lep_date within whole document. I want the max value of lep_date only within the page, so every page footer will have different values regarding its page content.


You can find the sample xml file that I'm working on, and you can test the statement with.  Do you have any advice?


Thanks,

Andaç

 

Screen Shot 06-01-15 at 12.27 PM.PNG


Viewing all articles
Browse latest Browse all 1645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>