[MarkLogic Dev General] Trailing Spaces Removed from Attribute
Values--Bug or Feature?
Eliot Kimber
ekimber at reallysi.com
Wed Mar 12 09:43:53 PST 2008
Michael Blakeley wrote:
> I can't speak to the product issue, but is it practical to work around
> this behavior by ending your class attributes with a dummy character?
> For example:
>
> <topic class="- topic/topic task/task -"/>
> /self::*[contains(@class, ' topic/topic ')]
>
> => true
>
> DITA attaches meaning to the leading '-' and '+' characters. Will the
> trailing '-' cause problems? If so, could another character be used?
I've been exploring that question with the DITA Technical Committee and
the answer appears to be that in fact there are tools that would be
disrupted by having anything after the initial "-" or "+" that is not a
module/type name pair.
Adding a trailing character would be an easy fix but it would still
require scrubbing of the data for use by tools outside of MarkLogic.
Cheers,
Eliot
--
Eliot Kimber
Senior Solutions Architect
"Bringing Strategy, Content, and Technology Together"
Main: 610.631.6770
www.reallysi.com
www.rsuitecms.com
More information about the General
mailing list