Page 1 of 1

Wildcards and folder names in document type association

Posted: Tue Sep 02, 2008 2:12 pm
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

Re: Wildcards and folder names in document type association

Posted: Wed Sep 03, 2008 11:00 am
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

Re: Wildcards and folder names in document type association

Posted: Thu Sep 04, 2008 4:01 pm
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.

Re: Wildcards and folder names in document type association

Posted: Wed Sep 10, 2008 12:43 pm
by sorin_ristache
Thank you for the details. I added an enhancement request to our internal system.


Regards,
Sorin

Re: Wildcards and folder names in document type association

Posted: Mon Mar 30, 2009 4:51 pm
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

Re: Wildcards and folder names in document type association

Posted: Fri May 29, 2009 12:29 pm
by pb
Thanks!

Peter