profiling attributes for TEI?
Posted: Mon May 30, 2011 4:34 pm
Hi,
I'm trying to define a document type association for a TEI P4-based customization. One of the things I'm looking for is creating (open-ended) suggestion lists for attribute values. Unfortunately, I'm no Java head so I'm afraid the really cool things are out of my reach (I'd like, e.g. to construct such a list by looking up with XQuery what values are already present for an attribute, so that this system could 'learn' as the document base is expanded, in a minimal way).
I figure the "profiling/conditional text" feature comes closest to implementing such an attribute value suggestion list. I've tested by successfully toying with the DITA and DocBook samples; yet I can't get it working for the TEI document type. While I manage to successfully define a profiling attribute by specifying values for the global @n attribute, these don't show up when trying to add an @n attribute in author view: the suggestion list for the values remains empty.
Is more needed to enable this feature for TEI, or doesn't TEI support profiling attributes (I only learned through Oxygen that it seems to be a feature of DITA and DocBook)? If so, is there another way to enable such an autosuggestion feature for attribute values (I'm using a DTD, so I don't think there's a way to define open-ended lists via the DTD)?
Kind regards,
Ron
I'm trying to define a document type association for a TEI P4-based customization. One of the things I'm looking for is creating (open-ended) suggestion lists for attribute values. Unfortunately, I'm no Java head so I'm afraid the really cool things are out of my reach (I'd like, e.g. to construct such a list by looking up with XQuery what values are already present for an attribute, so that this system could 'learn' as the document base is expanded, in a minimal way).
I figure the "profiling/conditional text" feature comes closest to implementing such an attribute value suggestion list. I've tested by successfully toying with the DITA and DocBook samples; yet I can't get it working for the TEI document type. While I manage to successfully define a profiling attribute by specifying values for the global @n attribute, these don't show up when trying to add an @n attribute in author view: the suggestion list for the values remains empty.
Is more needed to enable this feature for TEI, or doesn't TEI support profiling attributes (I only learned through Oxygen that it seems to be a feature of DITA and DocBook)? If so, is there another way to enable such an autosuggestion feature for attribute values (I'm using a DTD, so I don't think there's a way to define open-ended lists via the DTD)?
Kind regards,
Ron