[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: FW: TransformedDocument element
Forwarding issue from DSS interop. I suggest that we look at this once the revised draft Core has been produced. Nick -----Original Message----- From: Andreas Kuehne [mailto:akuehne@yahoo.com] Sent: 17 June 2005 11:03 To: scabre@ac.upc.edu; Edward Shallow; Konrad Lanz; Nick Pope; Tommy Lindberg Cc: cruellas@ac.upc.edu Subject: Re: TransformedDocument element Hi Sergi, I guess we don't solve this by just 'base64 coding' the problem. You still got the problem after you decoded the transform result and want to do further processing. The information about the result type of the XPath operation is lost. On some cases you can't guess if it once was a tree fragment or just a funny string. To take out some complexety I would vote for restricting the transformed result to a tree fragment. We just have to introduce a new holder ( like 'dssTreeFragment' ) for this because dss:Document is too narrow. Greetings Andreas --- "scabre@ac.upc.edu" <scabre@ac.upc.edu> wrote: > Hi, > > In section 4.6.8 of the DSS draft is described the optional output that > contains the result of applying all the transforms to the referenced > document. This result is inserted into a dss:Document element so "the > hash value of the returned document should equal the <ds:Reference> > element's <ds:DigestValue>". However, not all transforms produce as a > result an xml document. For instance, given this document: > > <?xml version="1.0" encoding="UTF-8" ?> > - <#> <Doc> > <child1 Id="aaa">Text1</child1> > <child2 Id="bbb">Text2</child2> > </Doc> > > If we apply the xpath transform with xpath expresion: > ancestor::child1 > to this document, the result will be: > Id="aaa"Text1 > > This result is not an xml document, so it can not be put into a > Document. Moreover, some transforms such as some XSLT transforms can > produce as a result a binary document. > > Maybe a possible solution would be to base 64 encode the result if it is > not an xml? > > Regards, > > Juan Carlos and Sergi > __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]