I had a similar requirement and decided to employ the DocBook
tag <phrase role="company-name>My Company</phrase>. This text
displays easily in XXE and is correctly formatted by the tools
I have found to use DocBook.

The application would be able to locate and replace the phrase
easily. XLST would have no trouble locating phrases like this.

Something like ...

<xsl:template match="phrase/@role['company-name']>
<!-- emit your replacement text -->
</xsl:template> 

A proper solution could use <xsl:key/> and the keys() function
for performance.
  
-- 
John Austin <jwaustin at sympatico.ca>


Reply via email to