The following statement
$VERSION = '$Rev$';
breaks the plugin code with
unknown-a871928:0: XInclude error : failed build URL
When I try to run the XmlQueryPluginRecipe5 example on the Plugin home page.
This is because, at line 1490 the statement
$xmldir .= "/$VERSION"; # ensure that the XML generated per topic is versioned
causes a bad URL to be generated - one that includes colons and spaces.
What is the best way to refer to the plugin revision for this purpose?
Once checked-in, the value of
becomes something like
$Rev: 19215 (2010-07-10) $
, representing the SVN number and date.
You could either change the
of this plugin to a hand coded string, such as
, or sanitize the string before using it as a directory name (filter string to keep only characters that are valid by the OS).
I have decided to go the string sanitation route. Thanks for the suggestions.I have fixed the problem and uploaded the files into SVN and released it.