XML to describe with schema to use

Registered by Adam Candy on 2011-07-15

Create a link between XML and schema - possibly as a path or alias description in a top level attribute.
See the recent w3c standard on how this could be achieved.

A follow on from https://blueprints.launchpad.net/spud/+spec/diamond-schema-aliases, where the following was introduced:
Could this also be added as an option in the flml file, i.e. the option to specify an alias to a schema file. In the case above, this might be:
<schema_alias>
  <string_value>iceshelf</string_value>
</schema_alias>

When the file is opened in diamond with:
# diamond file.flml
the schema path linked with the alias is looked up and used to read the fluidity option tree. If the alias doesn't exist, it just uses the default, which is what it would do currently. If a schema path or alias is provided as an argument, this overrides the option in the file.

Blueprint information

Status:
Not started
Approver:
None
Priority:
Undefined
Drafter:
Adam Candy
Direction:
Needs approval
Assignee:
None
Definition:
New
Series goal:
None
Implementation:
Unknown
Milestone target:
None

Related branches

Sprints

Whiteboard

It would be useful if aliases could be used here too - but this could always be done through symbolic links if the standard necessitates that a full path be given.
--
Cian said with regard to this blueprint:
My opinion is that if it's possible to do the second part an "official" way then that would be preferable to adding another suggested absolute path to the schema. I realise this one wouldn't be required but it's already quite annoying to incorporate /geometry/dimension into every schema.
--
Would this be an issue if it is only an optional path?

My main concern is how to implement this so it not filesystem or user specific. Working through aliases is one way, and possibly through symbolic links, if it is necessary to reference a filesystem path.

(?)

Work Items

This blueprint contains Public information 
Everyone can see this information.