Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

XSLT problem relating to XSLT2.0 processor

Status
Not open for further replies.

shashi2006

Programmer
Feb 16, 2006
2
DE
hi,
ERROR: Cannot use result tree fragmentError in XPath expression,
Cannot use result tree fragment

DESCRIPTION:I get the above mentioned problem when i do transformation
using XSLT2.0 engine, but when i use MSXML processor it works.
But am facing problem when do transformation in mozilla or other browsers
which support only XSLT2.0 but not MSXML. At preset this works only in
MS InternetExplorer.

error occurs at this line:
<xsl:call-template name="rowput">
<xsl:with-param name="region" select="$rregion[$row='regions'] |
following-sibling::key[1] [$innerrow='regions'] | $region [$row!='regions']"/>
</xsl:call-template>
thankyou
 
>But am facing problem when do transformation in mozilla or other browsers which support only XSLT2.0 ...
That's I am not quite sure.

I would think tree-fragment problem should on the contrary be something which should go away with xslt2!?

Could you make an abriged version which shows the problem in a clean way? I would be interested in looking how your files generate the mentioned error.

In the meantime, I would suggest this.
[1] At the root of xsl, add the namespace of xalan.
[tt]
<xsl:stylesheet version="1.0" xmlns:xsl=" xmlns:xalan="[/tt]
[2] Then at the select, call up the processor-specific function. Something like this. I should say though it is still a bit shooting in the dark.
[tt]
<xsl:with-param name="region" select="xalan:nodeset($rregion[$row='regions']) |
xalan:nodeset(following-sibling::key[1] [$innerrow='regions']) | xalan:nodeset($region [$row!='regions'])"/>
[/tt]
See what happens.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top