castor

Record Document Location in Particles

Details

  • Type: Wish Wish
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.3.1
  • Fix Version/s: None
  • Component/s: XML schema support
  • Labels:
    None
  • Number of attachments :
    0

Description

It would be extremely useful if the xml schema Particle class recorded details of the document location from which it was obtained. This would allow users of the castor xml schema library to give precise information regarding the source location of various aspects of the schema. At present, it is only possible to give the namespace and name for a particle (e.g. element declaration). This severely limits the usefulness of the xml schema library in several use cases, particularly relating to semantic validation and editing of schema documents.

The ComponentReader already has all the information required in the _documentLocator field. This just needs setting on all particles when they are created.

Activity

Hide
Werner Guttmann added a comment -

Feel like provinding us with a patch initially ?

Show
Werner Guttmann added a comment - Feel like provinding us with a patch initially ?
Hide
Werner Guttmann added a comment -

Would you want to have the {Locator} set on the Particle instances, or just the information that could be extracted from it ?

Show
Werner Guttmann added a comment - Would you want to have the {Locator} set on the Particle instances, or just the information that could be extracted from it ?

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated: