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

FOSI Xpath content as markup?

$
0
0

Hi FOSI gurus--

 

I have a FOSI issue I'm trying to sort out. In my document I need to have dynamically set footer information. I'm doing this by embedding a processing instruction containing the desired content at publishing time, and my stylesheet can pick up the content of the PI and stick it in the footer. With plain text content, this all works just fine, e.g.:

 

<?footer This is important information that should appear in the footer>

<document>

<title>Important document</title>

...etc.

 

So far so good. But, I would also like to be able to support markup in that string (escaped for the PI encoding). For example, I'd like to be able to support having a <?Pub _newline> in there, something like this:

 

<?footer This is important information&lt;?Pub _newline&gt;that should appear in the footer>

<document>

<title>Important document</title>

...etc.

 

so the footer would be rendered like so:

 

This is important information

that should appear in the footer.

 

I'm using #XPATHSTRING(...)#XPATH in my usetext to get the PI content, but when I display it I see the markup in the footer, like this:

 

This is important information&lt;Pub _newline&gt;that should appear in the footer.

 

So my question is: is there a way that I can tell the FOSI that I want it to parse the result of #XPATHSTRING and use it as markup? Or is there another way I can retrieve the content of that PI that will have the same effect?

 

Thanks.

 

--Clay


Viewing all articles
Browse latest Browse all 1645

Trending Articles



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