cancel
Showing results for 
Search instead for 
Did you mean: 
Security Alert Log4j Security Vulnerability. Click here to know more.
cancel
Showing results for 
Search instead for 
Did you mean: 

Does Xpath work in UFE elements?

sureshmaddela
1-Newbie

Does Xpath work in UFE elements?

Hi All,



I have a doubt wheather XPath works for and elements in FOSI.

Because, my below code tries to override the "10.5pt" value if ancestor::schedule condition is valid.

But it does not work for me. So I would like to know that XPATH really works in the contexts of UFE elements?











...

...

..



















Suresh
3 REPLIES 3

XPath only works from the context of an actual element in the document.
UFE elements are generated text and don't actually exist as far as the
XML Document Object Model is concerned. So unfortunately, you cannot use
it as you are describing.



John Dreystadt
Software Development Director
Arbortext - PTC
734-352-2835
-

Hi Suresh-



I see from John's reply that this doesn't work directly. But maybe you
could apply the XPath test at the point where you insert the UFE, and
insert different UFE's depending on whether the original context has an

Depending upon your document structure, you could also use the FOSI-only method of setting a text variable in the <schedule> e-i-c. Then you could use an <att> in whatever e-i-c(s) you need the 10.5pt override to test for the existence of or value of the text variable.
Announcements