[Home] [By Thread] [By Date] [Recent Entries]
Mario Madunic wrote:
Sorry here is the output I get What you are seeing is the output fromt he default template for any text nodes. Your xsl:for-each never selects anything. You can test this by explicitly telling the processor not to output anything when there's no match at all: <xsl:template match="text()" /> Add that to your stylesheet. If you still get your output, you'll have to try a more concise example and post a complete stylesheet here so we can help you further. The following works for me: <xsl:stylesheet version="2.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:variable name="mytext">Text & more text</xsl:variable> <xsl:template match="/"> <xsl:value-of select="replace($mytext, '&', 'and')" /> </xsl:template> </xsl:stylesheet> it outputs: Text and more text As you can see, no &. Try it with your processor, see if it does the same... Narrowing down the problem with a tiny example that illustrates is, usually resolves the problem as well ;) Cheers, -- Abel Braaksma
|

Cart



