Project

Profile

Help

Is the information given in the documentation at http://saxonica.com/html/documentation/sourcedocs/streaming/streaming-extensions-and-restrictions.html about match="para[1]" correct?

Added by Martin Honnen almost 7 years ago

http://saxonica.com/html/documentation/sourcedocs/streaming/streaming-extensions-and-restrictions.html says

Streaming extensions are enabled only if requested using the configuration option FeatureKeys.STREAMABILITY. The following extensions are offered:

[...] Saxon retains a count of the number of preceding siblings (by node name) of streamed elements, both for the currently processed element and for its ancestors. This information allows match patterns such as @match="para[1]"@ to be used in streamable template rules.

however when I try to run a stylesheet having




	
	
	
	
	

using @Saxon-EE 9.7.0.18J@ from the command line with the option @--streamability:extended@ I get an error

Static error at xsl:template on line 10 column 33 of test2017060504.xsl: XTSE3430: Template rule is declared streamable but it does not satisfy the streamability rules.

  • The match pattern is not motionless

Is that documentation outdated or do I need a different configuration option to enable that streaming extension and support of @match="item[1]"@?


Replies (1)

RE: Is the information given in the documentation at http://saxonica.com/html/documentation/sourcedocs/streaming/streaming-extensions-and-restrictions.html about match="para[1]" correct? - Added by Michael Kay almost 7 years ago

Thanks for pointing this out. This statement should have been dropped in 9.7. Saxon 9.6 attempted to do this (I don't really know how successfully) but 9.7 has attempted to bring the streaming rules into line with the W3C spec.

    (1-1/1)

    Please register to reply