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

getting around xpaths in gentext

$
0
0

Hey folks,

I have a situation where I'm referencing an attribute value from the root node in a block that is getting formatted into a table with gentext. The problem is I lose the attribute value because XPaths do not work in gentext very well.

 

Consider the sample XML...

<root attr="foo">

<block>

<p> The value is <placeholder target="attr"/>.</p>

</block>

</root>

 

I have an XPath/Attribute set on placeholder to get the value of "attr" from the root node. The stylesheet is formatting <block> into a table. When these combine, I lose the value of attr in placeholder.

 

I've seen this done before, but can't remember how it is done. Appreciate any tips.

Thanks,

-Jeff


Viewing all articles
Browse latest Browse all 1645

Trending Articles



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