Hi Sam,
Thank you for the response. My apologies -- I didn't do a very good job of expressing my problem, or my attempts at a solution. The problem I was encountering was that the
should render " around words in the
element. Because I wasn't sure how to approach this correctly, the quotation marks were being left out of the resulting text document. [1]
I had initially tried to create a variable and use it to replace occurrences of <emph>, but that didn't work (that's probably an imperative solution?).
Here's an example of one of my attempts:
Code:
<xsl:template match="unittitle">
<xsl:if test="contains(., 'emph')">
<xsl:variable name="emphQuote" select="'"'"/>
<xsl:apply-templates />
</xsl:if>
</xsl:template>
Your example works perfectly. Thank you for the advice. If you have a moment, would you be willing to address another question? As you can hopefully see in the example at [1] or [2], the formatting of the output follows the whitespace/indenting of the original XML. I'm applying [CODE]<xsl:stripspace elements="*"/>, but it seems that the whitespace is considered significant by the processor (Saxon HE 9.4).
I've tried the following, but this strips too much; e.g. the quotation marks.
Code:
<xsl:template match="unittitle"><xsl:value-of select="normalize-space()"/></xsl:template>
.
Thanks!
[1]
Code:
#464: Dutch. I know Mary [Frances Dutchess (Watrous) Roth] packed it some
where!, Box: 2 Folder: 110 undated (Negative)
[2]
Code:
#464: Dutch. "I know Mary [Frances "Dutchess" (Watrous) Roth] packed it some
where!", Box: 2 Folder: 110 undated (Negative)