> This wouldn't be useful because a newly inserted element would get its
> automatic ID  as soon as the document is validated/saved. (Something
> like "???" would be of course automatically replaced.)
>
> In a nutshell, we can guarantee that with such validateHook, after a
> document is validated/saved, each element would have its own, unique,
> automatic ID matching exactly the text pattern you want.
>
> Such validateHook is quite easy to write in Java.
>
> References:
>
> * http://www.xmlmind.com/xmleditor/_distrib/doc/configure/validateHook.html
>
> * http://www.xmlmind.com/xmleditor/_distrib/doc/dev/validatehook.html
>
Dear Mr. Shafie,

We did as you suggested, which is indeed an easy way to process the 
authored document. We wondered what would be the best way to 
automatically generate missing IDs (e.g. those equal to '???').

We hoped to find a method similar to  'generate-id(.)' function call in 
the XXE Java API (e.g. in , but did not see any. We thought XNode was 
the place where to start to look for a solution;  how would you advise 
us to achieve this ?

Many thanks for your advise,
Best regards.
Philippe.




 
--
XMLmind XML Editor Support List
[email protected]
http://www.xmlmind.com/mailman/listinfo/xmleditor-support

Reply via email to