Re: Displaying HTML code pulled from a database
Glen Barnes <[email protected]> Tue, 5 Oct 2004 14:02:39 +0100
| Newsgroups | gmane.text.xml.o-xml |
|---|---|
| Message-ID | <[email protected]> |
On 5 Oct 2004, at 10:13, Martin Klang wrote: > > On 4 Oct 2004, at 23:36, Glen Barnes wrote: > >>> This gets a bit tedious when you have to iterate over rows of >>> results. You might find you can do it with a single XPath replace() >>> expression. >> >> Isn't replace() an Xpath 2.0 function? > > yes sorry, I meant o:Path replace()! > as in > $results/column/text().replace(java:parse($results/column/text())) > Right-O then...It works. Anywhere that I pull marked-up content from a DB I can use the parse function to convert it to the correct format. Then in my template I simply use an xsl:copy-of to output a deep copy of the variable and it will work. I just tested it and all is OK. /b