Project

Profile

Help

xsl:is-schema-aware always 'not' in @use-when?

Added by T Hata over 7 years ago

With this stylesheet,





	

	
		
	

	
		
		
			
		
	

@use-when works differently on Saxon 9.6 and 9.7.

9.6.0.10

P:\>java -cp saxon9ee.jar net.sf.saxon.Transform -it:main -t -xsl:test.xsl
Saxon-EE 9.6.0.10J from Saxonica
Java version 1.8.0_111
Using license serial number V......
Loading schema document file:/P://test.xsl
Finished loading schema document file:/P://test.xsl
...
Processing  (no source document) initial template = main
xsl:is-schema-aware = yes in @use-when
xsl:is-schema-aware = yes in @test
...

9.7.0.14

P:\>java -cp saxon9ee.jar net.sf.saxon.Transform -it:main -t -xsl:test.xsl
Saxon-EE 9.7.0.14J from Saxonica
Java version 1.8.0_111
Using license serial number V......
Loading schema document file:/P://test.xsl
Finished loading schema document file:/P://test.xsl
...
Processing  (no source document) initial template = main
xsl:is-schema-aware = yes in @test
...

I want 9.7 to work like 9.6. So I tried this config.




	

Still no luck.

P:\>java -cp saxon9ee.jar net.sf.saxon.Transform -config:config.xml -it:main -t -xsl:test.xsl
Saxon-EE 9.7.0.14J from Saxonica
Java version 1.8.0_111
Using license serial number V......
Loading schema document file:/P://test.xsl
Finished loading schema document file:/P://test.xsl
...
Processing  (no source document) initial template = main
xsl:is-schema-aware = yes in @test
...

So... @xsl:is-schema-aware@ is supposed to be always 'no' in @use-when?


Replies (3)

Please register to reply

RE: xsl:is-schema-aware always 'not' in @use-when? - Added by T Hata over 7 years ago

Also tried @--xsltSchemaAware:true@, only to fail.

RE: xsl:is-schema-aware always 'not' in @use-when? - Added by T Hata over 7 years ago

Searched the documentation for @is-schema-aware@, but didn't hit a clue.

    (1-3/3)

    Please register to reply