On 11/13/06, Dan Connelly <[EMAIL PROTECTED]> 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

Reply via email to