xsl-list
[Top] [All Lists]

[xsl] Replace one entity with another

2009-10-19 09:41:43
I have a complex XML file that I'm transforming into a simpler XML file.

        <xsl:template match="/">
            <root>
                  <xsl:for-each select="document/record">
                        <product>
                              <description>
<xsl:value-of select="short_description"/>
                                    <xsl:text>&#x000A;</xsl:text>
                              </description>
                        </product>
                  </xsl:for-each>
            </root>
      </xsl:template>

My problem is that many of <description> elements contain &#153; in their content, and I need to replace all of these with &#x2022;

I can't get my head around how to do this. I understand GREP, so if a regular exp. needs to be built to do this, I can handle that. But I can't figure out how to manipulate the content of elements with XSL. Any help is appreciated. Thanks!

Keith Gilbert
Adobe Certified Instructor: ID, IC, AI, PS, AA
blog.gilbertconsulting.com







--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>