Re: Abt Libxslt use in replace function
James Fuller <[email protected]>
| Newsgroups | gmane.text.xml.xslt.extensions |
|---|---|
| Message-ID | <[email protected]> |
James Fuller wrote: > bhushan wrote: > >> i have used str:replace in my xsl file >> this my XSL file >> >> <?xml version="1.0" encoding="UTF-8"?> >> <xsl:stylesheet version="1.0" xmlns:xsl=" >> http://www.w3.org/1999/XSL/Transform" >> xmlns:idmef="http://iana.org/idmef" xmlns:str="http://exslt.org/strings" >> extension-element-prefixes="str"> >> <xsl:import href="replace.xsl" /> >> <xsl:variable name="color" >> select="idmef:IDMEF-Message/idmef:Alert/idmef:Analyzer/idmef:Node/idmef:name"/> >> >> <xsl:variable name="color1" select="'a'" /> >> <xsl:variable name="color2" select="'e'" /> >> <xsl:template match="/" > >> <xsl:call-template name="str:replace"> >> <xsl:with-param name="string" select="color"/> perhaps this should be $color as well, which most likely solves your problem hth, Jim Fuller