Hi Jamey,
Has there been any progress on this?
Your analysis of the dtd was correct.This is exactly what this attribute was supposed to do, although we never used this construction in our own vad packages.
I have committed a permanent fix for the upcoming VOS 6.1.3 release.I have attached a copy of this patch against the 6.1.2 source code in case you or anyone else on this list is interested.
The "vad_sticker.dtd" file in the Virtuoso source code (and the documentation at http://docs.openlinksw.com/virtuoso/VAD.html) appears to indicate that file resource elements in vad stickers will accept a "source_uri" attribute.When this attribute is populated, I would expect the VAD_PACK procedure to use it to determine where to obtain the actual file contents. But it does not appear to do so. From my reading of the code, VAD_PACK defers to VAD_TEST_CREATE, which does not have any logic to use the "source_uri" attribute (and instead always derives the source path from the target path). Is that a bug? Or am I misunderstanding the DTD and documentation?I'm attaching a modified version of the VAD_TEST_CREATE procedure to illustrate my question. It likely isn't entirely correct (since this is my first time attempting to modify Virtuoso procedures), but it does handle a simple case where the "source_uri" attribute is set for a file resource. (The modified portions involve the "s5" variable.)
Best regards, Patrick
vad_make.diff
Description: Binary data
