Skip to content

faq 101187587

Billy Charlton edited this page Sep 5, 2018 · 2 revisions

How to define custom plan attributes in a file?

by gunnarfloetteroed on 2016-12-14 10:06:19


I would like to annotate each plan of each person in the population file with attributes not contained in the population DTD. Background: The plan choice set is generated by sampling alternatives and I need to correct for the sampling in (a preprocessing step of the) plan selection.

What is the right way to do this? The parser refuses elements/attributes not defined in the DTD, and when using an external objectattributes file, I have no plan identifiers to refer to. I could think of relying on the plan ordering per person in the population file and building an objectattribute file with a corresponding plan indexing, but that appears rather fragile.

Thanks, Gunnar



Comments: 1


Re: How to define custom plan attributes in a file?

by Marcel Rieser on 2016-12-14 11:42:41

That's currently not possible.

population_v6.dtd supports custom attributes on persons, activitys and legs. I don't know why it is not supported for plans as well – at least I could come up with more ideas for attributes for a plan than for attributes for activities, but I guess usages vary.

I would probably raise an issue requesting (or even implementing) that plans can also have attributes.

population_v6.dtd was not yet published in an official release, so we could still make changes to it, and this seems like a useful change to me.

Clone this wiki locally