SQF on XSpec

Oxygen general issues.
scottbdr
Posts: 50
Joined: Tue Jul 21, 2009 1:48 am

SQF on XSpec

Post by scottbdr »

Hi. Just got done with my SQF validation on our Schematron modules, now working on an XSpec SQF. I was a bit thrown when I didn't see the quick fix "light bulb" on something that was clearly being warned about - I usually use that rather than the mouse-over. The mouse-over was there, but not the light bulb - is this a configuration thing or a bug?

Scott
light-bulb-missing.png
light-bulb-missing.png (27.38 KiB) Viewed 2349 times

Code: Select all

<?xml version="1.0" encoding="UTF-8"?>
<sch:schema queryBinding="xslt2" 
    xmlns:sch="http://purl.oclc.org/dsdl/schematron" 
    xmlns:x="http://www.jenitennison.com/xslt/xspec"
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:sqf="http://www.schematron-quickfix.com/validator/process">
    
    <sch:ns uri="http://www.jenitennison.com/xslt/xspec" prefix="x"/>   
    
    <sch:pattern id="sqf-run-as">
        <sch:rule context="x:description">
            <sch:assert test="@run-as = 'external'" sqf:fix="add-run-as" id="sch0001" role="warn">
                <sch:name/> SHOULD have @run-as="external" set unless it is known to cause issues.
            </sch:assert>
            <sqf:fix id="add-run-as">
                <sqf:description>
                    <sqf:title>Add x:description/@run-as="external"</sqf:title>
                </sqf:description>
                <sqf:add node-type="attribute" target="run-as" select="'external'"/>
            </sqf:fix>
        </sch:rule>
    </sch:pattern>
</sch:schema>
tavy
Posts: 364
Joined: Thu Jul 01, 2004 12:29 pm

Re: SQF on XSpec

Post by tavy »

Hello Scott,

Thanks for your feedback.
Yes, it seems that the XSpec editor does not enable the quick assist support (light bulb). I added an issue on our issue tracker to enable the quick assist support in the XSpec editor. When this will be solved we will update this thread.

Best Regards,
Octavian
Octavian Nadolu
<oXygen/> XML Editor
http://www.oxygenxml.com
Mircea
Posts: 130
Joined: Tue Mar 25, 2003 11:21 am

Re: SQF on XSpec

Post by Mircea »

Hello Scott,

In the new Oxygen 25.0 the quick assist support for XSpec files was activated.

Regards,
Mircea.
Mircea Enachescu
<oXygen> XML Editor, Schema Editor and XSLT Editor/Debugger
http://www.oxygenxml.com
scottbdr
Posts: 50
Joined: Tue Jul 21, 2009 1:48 am

Re: SQF on XSpec

Post by scottbdr »

Great! Thanks for the heads up - I'll download it today!
Post Reply