Project

Profile

Help

No output when nesting xsl:for-each-group select="copy-of(current-group())" inside xsl:fork/xsl:for-each-group

Added by Martin Honnen almost 8 years ago

I understand https://saxonica.plan.io/issues/2645 is a work in progress so I am probably just trying something currently not supported but when trying to use a nested @xsl:for-each-group select="copy-of(current-group())" group-by="@foo"@ inside of a @xsl:fork/xsl:for-each-group@ Saxon indicates it is writing output documents but they all end up empty.

The test case is






	

	

	
		
			
				
					
						
							
							
								
							
						
					
				
			
		
	


The input is




	
	
	
	
	
	
		

using the @-t@ option from the command line Saxon 9.7.0.6 EE then indicates writing three files

Writing to file:/C:/SomePath/account01826370.xml
Writing to file:/C:/SomePath/account92741838.xml
Writing to file:/C:/SomePath/account43861562.xml

but they all have size 0, there is no content written at all.

It works fine however if I don't want to sort and instead nest an @xsl:fork/xsl:for-each-group select="current-group()"@ without the @copy-of()@, as in





	

	

	
		
			
				
					
						
							
								
									
								
							
						
					
				
			
		
	


So the nested grouping work when processing the population of streamed nodes but not when trying to use a grounded population.


Replies (2)

RE: No output when nesting xsl:for-each-group select="copy-of(current-group())" inside xsl:fork/xsl:for-each-group - Added by Michael Kay almost 8 years ago

I have added this test case to the test suite as si-group-204, and it is working fine there. However, the test driver has its own way of handling multiple result documents, so I need to check that it is also working from the command line.

RE: No output when nesting xsl:for-each-group select="copy-of(current-group())" inside xsl:fork/xsl:for-each-group - Added by Michael Kay almost 8 years ago

Yes, this test is also working in my current build when run from the command line.

    (1-2/2)

    Please register to reply