On 10/22/2010 11:24 PM, Andy Black wrote:
> 
> A user has a file name of
> 
>      Me'phaa.xml
> 
> and was trying to run a custom macro I had made.  The macro failed to work.
> 
> When I debugged the macro and gave it the command
> 
> <cfg:get expression="%{d}"/>

I guess that this is a simplification of what you want to do because, as
is, the above instruction does not make sense.



> 
> the result was:
> 
> -->associatePublisherStylesheet:get: checking...
>     cannot parse 
> expression='file:/C:/Documents%20and%20Settings/Andy%20Black/My%20Documents/XLingPap/Users/SteveMarlett/Me'phaa.xml':
>  
> bad character after :
> <--associatePublisherStylesheet:get: CANNOT EXECUTE
> 
> There is no problem when the file name does not have the apostrophe in it.

With or without an apostrophe

file:/C:/Documents%20and%20Settings/Andy%20Black/My%20Documents/XLingPap/Users/SteveMarlett/Me'phaa.xml

is definitely not a valid XPath expression. There is nothing that can be
changed in that fact.



> 
> Is there a solution to this other than not using a single quote in the 
> file name?
> 

Probably, but I don't understand what is exactly the problem. Please
consider sending me a less simplified version of your macro.


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

Reply via email to