From: John McGowan <mcgowan@ly...> - 2006-10-27 20:45:11
A while ago I wrote some functions that return HTML markup. Now I'm
trying to figure out if there is a cleaner way to do this that doesn't
require the use of the disable-output-escaping attribute. The example I
have below is a trivial one, my need for this to be a function is
because the output can be much more complicated than an <h2/>
I'm asking on this list because the only way i could get close to doing
this was with the saxon:serialize function... I don't think I can do
this sort of stuff without it.
here's the function declaration
<xsl:output name="functionoutput" method="xml" indent="no"
encoding="US-ASCII" omit-xml-declaration="yes" />
<xsl:value-of select="saxon:serialize($html,'functionoutput')" />
here's a call to that function
select="tessitura:bigheader('Text for Header')"/>
If I'm missing something here and there is a way to do this sort of
thing without using saxon specific features, i apologize...
P 847.608.6900 x 110
Get latest updates about Open Source Projects, Conferences and News.