Alain,
> What if the result of the transformation is a text?
Currently, if the transform returns just text then Firefox wraps the result of the transform in an element but, of course, this gets serialized too.
May be there should be a standard 'wrapper' element for plain text results in the same way that XProc will wrap the result of a p:data instruction defined in an input source port (used to retrieve non-XML content) in a c:data element.
Regards
Philip
From: Alain Couthures [mailto:ala...@ag...]
Sent: Tuesday, May 10, 2011 4:13 PM
To: Philip Fennell
Cc: xsl...@li...
Subject: Re: [Xsltforms-support] Hints on using the transform function
Philip,
Would an alternative implementation of the transform function return a node and then you could use the existing serialize function to generate the textual representation from the result of transform?
Wouldn't the result always be a document root or a document element?
Considering that I don't know if people are already using the current transform() function, wouldn't it be better to name this function transform-doc(), for example?
What if the result of the transformation is a text?
Regards,
-Alain
|