XML.orgXML.org
FOCUS AREAS |XML-DEV |XML.org DAILY NEWSLINK |REGISTRY |RESOURCES |ABOUT
OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]
Re: [xml-dev] StAX & XInclude

Hi,

Joerg Hohwiller a écrit :
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hi there,
>
> I am a brute newbie to this list, but quite familiar with XML.
>
> I started using StAX. However I quickly noticed that there is no implementation
> (at least that I know) that already supports XInclude.
> Therefore I wrote an adapter for XMLStreamReader that adds this support.
> You can find my work here:
> http://m-m-m.svn.sourceforge.net/svnroot/m-m-m/trunk/mmm-util/mmm-util-xml/src/main/java/net/sf/mmm/util/xml/stream/XIncludeStreamReader.java
>
> Now I realized that XInclude allows XPointer references, what makes it extremely
> complicated and together with StAX somewhat impossible to implement (if not the
> complete DOM is cached in memory). I do not give up so easily. So I am thinking
> of an implementation that supports parts of the XPointer specification.
>   
My own streaming engine support XPath-based filters without syntax
limitations and only backward axis are (for the moment) not supported
It doesn't break the stream, that is to say it doesn't put in cache all
the document, that is to say you can apply XPath on large documents that
would cause an OutOfMemoryException with DOM
My implementation of XInclude is just a hard-coded filters, thus
XPointer is also supported (but limited to XPath)
You can get it here :
http://reflex.gforge.inria.fr/
You can also check the result of the XInclude test suite to see what is
not supported :
http://reflex.gforge.inria.fr/tests-xinclude.html#xinclude-stream
(not so much skipped tests, errors and failures)

Of course, it also works for DOM, with less errors (that should be fixed
in the next release)
> Is there someone out there who has experience with (implementing) XPointer?
> or is interested in helping out? or both?
> Maybe somebody knows an open-source implementation of a loose XPointer parser I
> could use?
>
> Currently I am about to write a new parser and another XMLStreamReader facade
> for the XPointer selection view. Since I am always looking for generic solutions
> I want to create an API for a parsed XML node selection expression and parsers
> for both XPath and XPointer. Is someone familiar enough with these two animals
> in order to let me know where my intention is going to fail right away or if
> this could work out and make sense?
>
> Best regards
>   Jörg
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.5 (GNU/Linux)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
>
> iD8DBQFGug4RmPuec2Dcv/8RAq/fAJ9+DmBq10IJlxngX0oVtHy3Y/GRSgCcClXk
> vHYTQAZlyhBYqHGGXibUl4g=
> =7HZw
> -----END PGP SIGNATURE-----
>
> _______________________________________________________________________
>
> XML-DEV is a publicly archived, unmoderated list hosted by OASIS
> to support XML implementation and development. To minimize
> spam in the archives, you must subscribe before posting.
>
> [Un]Subscribe/change address: http://www.oasis-open.org/mlmanage/
> Or unsubscribe: xml-dev-unsubscribe@lists.xml.org
> subscribe: xml-dev-subscribe@lists.xml.org
> List archive: http://lists.xml.org/archives/xml-dev/
> List Guidelines: http://www.oasis-open.org/maillists/guidelines.php
>   

-- 
Cordialement,

              ///
             (. .)
--------ooO--(_)--Ooo--------
|      Philippe Poulard       |
-----------------------------
http://reflex.gforge.inria.fr/
       Have the RefleX !



[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index]


News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 1993-2007 XML.org. This site is hosted by OASIS