jackrabbit-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Stefan Guggisberg" <stefan.guggisb...@gmail.com>
Subject Re: Roundtripping: Stripping JCR metadata
Date Mon, 13 Nov 2006 17:30:49 GMT
On 11/13/06, Dan Connelly <dsconnelly@adelphia.net> wrote:
> Is there a handy example of stripper code to eliminate JCR metadata,
> using either a ContentHandlerl or an XSLT?
>
> Seems like there should be standardized way to achieve roundtripping.
> Or, is the stripping task so trivial that the obvious first attempt
> (throwing out properties with jcr prefix) is going to do the job?

first of all i'd like point out that document view roundtripping is not
guaranteed for a number of reasons, e.g. xml comments are not
processed, (scoped) ns declarations are not preserved, formatting
is not preserved etc etc. document view xml format is IMO inherently
flawed and was never intented for roundtripping.

back to your question: probably the easiest approach would be to use
a custom ContentHandler that filters jcr:* properties and nodes.

cheers
stefan

>
>        --Dan
>

Mime
View raw message