W3C home > Mailing lists > Public > w3c-ietf-xmldsig@w3.org > January to March 2002

Re: Whitespace

From: Ed Simon <edsimon@xmlsec.com>
Date: Sun, 20 Jan 2002 18:12:48 -0500
Message-ID: <000901c1a208$00640ec0$6400a8c0@DJQC7111>
To: "Christian Geuer-Pollmann" <geuer-pollmann@nue.et-inf.uni-siegen.de>, "Brian LaMacchia" <bal@microsoft.com>, <reagle@w3.org>
Cc: <w3c-ietf-xmldsig@w3.org>
I'll agree with Brian too and add, to Christian's comment, that to control
whitespace treatment in the content an app could do the following, for
example, with an enveloping child element.

Perhaps this may be the best solution regardless of our time constraints.
(Note
that whitespace outside the envelope is not controllable the xml:space
attribute
but this may be OK.)

<ds:Object>
<custom:Envelope  xml:space="preserve>
<custom:Elem1> ... </custom:Elem1>
<custom:Elem2 xml:space="default"> ... </custom:Elem2>
</custom:Envelope>
</ds:Object>

Ed

----- Original Message -----
From: "Christian Geuer-Pollmann" <geuer-pollmann@nue.et-inf.uni-siegen.de>
To: "Brian LaMacchia" <bal@microsoft.com>; <reagle@w3.org>
Cc: <w3c-ietf-xmldsig@w3.org>
Sent: Saturday, January 12, 2002 6:54 AM
Subject: RE: Whitespace


> --On Freitag, 11. Januar 2002 17:30 -0800 Brian LaMacchia
> <bal@microsoft.com> wrote:
>
> > 3) If we were going to put the attribute anywhere, then I believe
> > Joseph's comment is correct that it would be more appropriate for the
> > attribute to go on ext:Foo.  (Notice that since dsig:Object does not
> > itself have any significant semantic beyond a mere container, it is the
> > case that in fact doing it this way (on ext:foo) is fully equivalently
> > expressive.)
>
> I agree with Brian about that this is a good solution if the schema is
> _not_ tweaked.
>
> I am no schema crack, but if the dsig schema cannot be overwritten in a
way
> that an application re-defined a ds:Object to contain only Elements (so
> that xml:space would be important for direct ds:Object/text() children,
> then the application developer can put the xml:space='preserve' into every
> element child of the ds:Object:
>
> <ds:Object>
> <custom:Elem1 xml:space="preserve"> ... </custom:Elem1>
>
>      <custom:Elem2 xml:space="preserve"> ... </custom:Elem2>
> </ds:Object>
>
>
>
>
>




Received on Sunday, 20 January 2002 18:13:50 GMT

This archive was generated by hypermail 2.2.0 + w3c-0.29 : Thursday, 13 January 2005 12:10:14 GMT