xsl-list
[Top] [All Lists]

[xsl] Unanderstaing xsl:mode usage

2016-08-28 09:38:19
Hello !


I have a XSLT 3.0 that uses streaming. Trying to run it with saxon9he (9.7.0-5 or 9.7.0-7), I get this error :

java -jar ~/applications/saxon-9.7.0-7/saxon9he.jar -xsl:generation-nomenclature.xsl -s:Paye_082011.xml
Static error at xsl:mode on line 7 column 33 of generation-nomenclature.xsl:
  XTSE0010: Element xsl:mode must not appear directly within xsl:stylesheet
Static error at xsl:mode on line 7 column 33 of generation-nomenclature.xsl:
  XTSE0010: Element xsl:mode must not appear directly within xsl:stylesheet
Static error at xsl:mode on line 7 column 33 of generation-nomenclature.xsl:
  XTSE0010: Unknown XSLT element: mode
Errors were reported during stylesheet compilation


My XSL (the beginning) is

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
    xmlns:xs="http://www.w3.org/2001/XMLSchema";
    exclude-result-prefixes="xs"
    version="3.0">

    <xsl:mode streamable="yes"/>

The specification does not limit xsl:mode usage inside xsl:stylesheet, so I do not understand the cause of the static error. Any help will be appreciated !


Best,
Christophe
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

<Prev in Thread] Current Thread [Next in Thread>