Wildcards and folder names in document type association

Are you missing a feature? Request its implementation here.
pb
Posts: 12
Joined: Wed Jun 15, 2005 5:43 pm
Contact:

Wildcards and folder names in document type association

Post by pb »

In the rules defined in the Document type association panel I'd like to use wildcards in file names (and/or create an association based on the folder where files are located).

Thanks,
Peter
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Wildcards and folder names in document type association

Post by sorin_ristache »

Hello,

All the documents of a document type defined in Preferences - Document Type Association will be validated against the same schema which is specified in the Schema URI on the Schema tab of the dialog for editing the document type. That means the documents have the same root local name or the same namespace or the same Public ID (in case of validation against a DTD) etc. as you can see in the Rules section of the dialog.

Please give one or two examples for which the rules should allow specifying a wildcard or a folder name. Do the documents have different namespaces, different root local names and different Public IDs? We want to understand how you need to match your documents with a document type.


Regards,
Sorin
pb
Posts: 12
Joined: Wed Jun 15, 2005 5:43 pm
Contact:

Re: Wildcards and folder names in document type association

Post by pb »

In my case, I'm editing a TEI document which contains a number of XInclude elements that fetch div's that are stored in separate documents. This is done in order to make it possible to work with multiple people on the same larger document.
The (sub)documents that we're working on should be validated using a TEI subset that includes elements for writing TEI ODD documents. Other TEI (sub)documents share the same local root element and the same namespace, but should be validated using e.g. tei-lite. So I would like to be able to distinguish between these cases, based on file name or disk folder: all files in folder x or all files named abc*.xml should be validated using schema xyz.
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Wildcards and folder names in document type association

Post by sorin_ristache »

Thank you for the details. I added an enhancement request to our internal system.


Regards,
Sorin
sorin_ristache
Posts: 4141
Joined: Fri Mar 28, 2003 2:12 pm

Re: Wildcards and folder names in document type association

Post by sorin_ristache »

Hello pb,

We implemented your request. Starting with version 10.2 the file name of an association rule in a document type allows the wildcards * and ? and editor variables, for example ${pd} - project directory, ${frameworks} - the frameworks folder, etc.


Regards,
Sorin
pb
Posts: 12
Joined: Wed Jun 15, 2005 5:43 pm
Contact:

Re: Wildcards and folder names in document type association

Post by pb »

Thanks!

Peter
Post Reply