Opened 13 years ago

Closed 13 years ago

#1666 closed defect (fixed)

Maestro 3 - XML Mode Toolbar Validation Fails

Reported by: crispinatime Owned by: jng
Priority: low Milestone: Maestro-3.0
Component: Maestro Version:
Severity: minor Keywords:
Cc: External ID:

Description

The Maestro XML editor has it's own validation button (green tick) that is failing because it seems not to be adhering to the \Schemas path set-up in the options.

The main toolbar validation check is OK in XML mode, it's just the XML editor toolbar that has the issue

Attachments (1)

1666.JPG (99.9 KB ) - added by crispinatime 13 years ago.
XML Validation Fail

Download all attachments as: .zip

Change History (8)

comment:1 by jng, 13 years ago

I'm not quite understanding the problem here. What is actually failing here?

When I put unknown elements in the XML document, the editor toolbar validate is properly flagging this (meaning validation correctly resolved the xsd file)

by crispinatime, 13 years ago

Attachment: 1666.JPG added

XML Validation Fail

comment:2 by jng, 13 years ago

Ok I get that warning as well. I don't know why that happens at the moment, but it definitely has no negative impact on the XML validation.

Just to prove the point, change the ResourceId element in that Layer Definition XML to ResourceIds

Validate, and you'll see that it has correctly detected an unknown ResourceIds element, which means it has correctly found and loaded the LayerDefinition-1.3.0.xsd

comment:3 by crispinatime, 13 years ago

The path in the warning message is because the path is simply missing "\Schemas\" from between "\Release\" and the "...xsd".

I assumed it would be the same fn call as the Validate on the main toolbar so was surprised to see the warning.

It is minor, just gives false sense of insecurity about manual XML editing at the moment.

comment:4 by jng, 13 years ago

Generally speaking, when you specify a relative path to something, it is assumed to be relative to the working directory of the application, which is the directory with Maestro.exe most of the time.

I'm guessing because the xsi:noNamespaceSchemaLocation is not an absolute path, this is where it tries to find the xsd. But I don't know how to tell the xml validator to look in our configured XML schema path instead

comment:5 by crispinatime, 13 years ago

But/so... - why does the main toolbar "Validate" tick work?

Or does that one just suppress the warning message? Surely they don't do two different validations?

comment:6 by jng, 13 years ago

Well actually they sorta do.

The one on the main toolbar does the logical validation against the resource of the active editor.

The one on the XML editor toolbar does validation of the XML content.

Perhaps I should change the icon to make this clearer.

comment:7 by jng, 13 years ago

Resolution: fixed
Status: newclosed
Note: See TracTickets for help on using tickets.