On Thursday 14 June 2007, Florent Georges wrote:
> David Goodenough wrote:
> > The docs do not give an example of the second parameter
> > to serialize when used in an xslt stylesheet. Could you
> > give me an example of how it should be coded (and
> > possibly add it to the docs).
> There is an example here:
> For instance:
> <sql:insert connection="$connection"
> <sql:column name="id" select="
> saxon:serialize($id, 'text')"/>
> <sql:column name="address" select="
> saxon:serialize($address, 'text')"/>
> When you get the select, you can parse the XML back to a node tree (a
> document node exactly) by:
The example is of an XQuery format, NOT an XSLT format. The relevant
section for XSLT says:-
When called within an XSLT stylesheet, the second argument may be the name of
an xsl:output element in the stylesheet, written as a string literal (it must
be a literal, or at any rate, an expression that is evaluated at compile
Being relatively new to XSLT I do not understand what I am being asked to
When I do as you suggest I get:-
Output format 'text' has not been defined