Thread: Entity Question
View Single Post
 
Old November 26th, 2005, 12:45 AM
raman27 raman27 is offline
Authorized User
 
Join Date: Apr 2005
Location: Chennai, Tamil Nazdu, India.
Posts: 23
Thanks: 0
Thanked 0 Times in 0 Posts
Default

This is xml file

<!DOCTYPE web-app SYSTEM "file:///entities.dtd">
<web-app id="WebApp_ID" version="2.4">
    <display-name>&lt;&eacute;
    hello</display-name>
    <welcome-file-list>
        <welcome-file>index.html</welcome-file>
        <welcome-file>index.htm</welcome-file>
        <welcome-file>index.jsp</welcome-file>
        <welcome-file>default.html</welcome-file>
        <welcome-file>default.htm</welcome-file>
        <welcome-file>default.jsp</welcome-file>
    </welcome-file-list>
</web-app>



in the XSL file
?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <xsl:output method="text" version="1.0" encoding="UTF-8" indent="yes"/>
    <xsl:template match="/">
            <xsl:for-each select="web-app/*">
                           <xsl:if test="name(.)='display-name'">
                                       <xsl:if test="contains(text(), '#233;')">
                                                   <xsl:text>yes</xsl:text>
                                       </xsl:if>
                           </xsl:if>
            </xsl:for-each>
    </xsl:template>
</xsl:stylesheet>