Martin Hans wrote:
> 
> I?m trying to make a macro which creates a link. I?d like it to insert 
> the link attribute automatically, but I can?t seem to make it work if 
> the attribute value contains a colon.
> 
>  
> 
> The following fails:
> 
>  
> 
> <command name="putAttribute" parameter="href http://"; />
> 
>  
> 
> The following works:
> 
>  
> 
> <command name="putAttribute" parameter="href http//" />
> 
>  
> 
> Is there some way I need to escape the attribute value to make 
> putAttribute accept it? I tried single quotes and &quot;, but no luck.
> 

XMLmind XML Editor is a validating editor and this, down to the 
putAttribute command. My guess is that your schema defines the "href" 
attribute as being an xs:anyURI. "http://"; is definitely not a valid, 
*absolute*, xs:anyURI. While "http//" looks like being a valid, 
*relative*, URI.

I guess that specifying "http://localhost/"; should work.




Reply via email to