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

Correct Xpath expression to remove special characters

$
0
0

Recently we've been experiencing some issues when bursting an Editor document into Windchill. Apparently, special characters such as ':,>' etc. are not allowed within Windchill object names. So I've found the following Xpath code (to be inserted in the burst configuration naming rules) which should be able to substitute any special characters when names are generated:

 

<namerule elementname="map" rule="xpath" nameexpression="translate(title/@outputclass,' \*:()|&lt;&gt;%.?/&quot;&apos;',' ')"/>

 

I cannot however get it to work. If anyone is familiar with Xpath syntax, could you please provide an example of how this code would look when using it to substitute characters in chapter object names? I suspect the issue lies with the 'title/@outputclass' part of the code, since I have tried for example 'title/chapter' and many other variations with no luck...


Viewing all articles
Browse latest Browse all 1645

Trending Articles



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