I decided to try out my own idea. I created the following stylesheet module, which includes stub definitions of both the standard IXSL functions and the specific Javascript extensions used in this project. I included this into the "real" stylesheet, and it makes the oXygen error messages go away. The stylesheet does no harm in production, because the function stubs all say override="no", and the real extension functions therefore take precedence over the stubs. (It's the first time I have found a use for this feature...)

<?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"
    xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT"
    xmlns:js="http://saxonica.com/ns/globalJS"
    version="2.0">
   
   
<!-- dummy definitions of functions to satisfy the Oxygen editor -->
   
   
<xsl:function name="ixsl:page" override="no"/>
   
   
<xsl:function name="ixsl:source" override="no"/>
   
   
<xsl:function name="ixsl:window" override="no"/>
   
   
<xsl:function name="ixsl:get" override="no">
       
<xsl:param name="object"/>
       
<xsl:param name="property"/>
   
</xsl:function>
   
   
<xsl:function name="ixsl:call" override="no">
       
<xsl:param name="object"/>
       
<xsl:param name="method"/>
   
</xsl:function>
   
   
   
<xsl:function name="js:includeJS" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>
   
   
<xsl:function name="js:makeCommand" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>
   
   
<xsl:function name="js:update" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>
   
   
<xsl:function name="js:transform" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>
   
   
<xsl:function name="js:parseXML" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>
   
   
<xsl:function name="js:serializeXML" override="no">
       
<xsl:param name="arg"/>
   
</xsl:function>

   
   
</xsl:stylesheet>


Michael Kay
Saxonica


On 11 Sep 2013, at 11:16, Michael Kay wrote:

Yes, the "errors" in oXygen do get irritating. I guess one solution would be to include a stylesheet module that contains dummy versions of these functions, labelled override="no".

Michael Kay
Saxonica

On 11 Sep 2013, at 10:06, Philipp Burger wrote:

Hi,
I tried to use the Saxson CE processor, but somehow Oxygen can't resolve the namespace for ixsl. 
Every function call in the ixsl namespace is marked wrong. The same problem with JavaScript functions.
The browser can run the script, so it should be valid.
Can I download the functions somewhere?
The Oxygen Support wrote, they don't support Saxon CE, only Saxon HE/PP/EE. 
Is there a way to get this working?

 
<?xml version="1.0" encoding="UTF-8"?>
<xsl:transform exclude-result-prefixes="xs prop" 
extension-element-prefixes="ixsl" 
version="2.0" 
xmlns:ixsl="http://saxonica.com/ns/interactiveXSLT" 
xmlns:js="http://saxonica.com/ns/globalJS" 
xmlns:prop="http://saxonica.com/ns/html-property" 
xmlns:style="http://saxonica.com/ns/html-style-property" 
xmlns:xs="http://www.w3.org/2001/XMLSchema" 
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">

<xsl:template match="/" name="main">
                        
<xsl:result-document href="#prompt" method="ixsl:replace-content">
                                   
<p>Eingegebener Text: <xsl:value-of select="ixsl:call(ixsl:window(), 'prompt', 'Titel', 'Bitte Text eingeben')"></xsl:value-of></p>
                                   
<p>Call JS functions: <xsl:value-of select="js:square(5)"></xsl:value-of></p>
                        
</xsl:result-document>
            
</xsl:template>
</xsl:transform>


Thanks for your Help
Philipp




------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help

------------------------------------------------------------------------------
How ServiceNow helps IT people transform IT departments:
1. Consolidate legacy IT systems to a single system of record for IT
2. Standardize and globalize service processes across IT
3. Implement zero-touch automation to replace manual, redundant tasks
http://pubads.g.doubleclick.net/gampad/clk?id=51271111&iu=/4140/ostg.clktrk_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/saxon-help