DOCTYPE and NDATA entities

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

DOCTYPE and NDATA entities

Alexander Witzigmann
we have to retrieve and pass xml instances containing DOCTYPE incl. NDATA entities through the pipe. thus the first step would be to pass this instances to an output using a custom java processor.
the next step in the pipe is an XSLT transformation which using unparsed-entity-uri(....).

is this kind of use-case currently possible and if so what is the easiest way:
  • generating a document contains NDATA entities within a DOCTYPE
  • output must be passed to next processor which will be some kind of xslt processor
thanks for your help,

alex
-- 
----------------------------------------------------
TANNER AG
Alexander Witzigmann
Kemptener Strasse 99
D-88131 Lindau
Germany

tel +49(0)8382/272-142
fax +49(0)8382/272-900
[hidden email]
http://www.tanner.de
----------------------------------------------------
The ultimate function of prophecy is not to tell the future, but to make it. Your successful past will block your visions of the future.


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: DOCTYPE and NDATA entities

Erik Bruchez
Administrator
Alex,

Our XPL engine currently only supports SAX ContentHandler events. This
excludes LexicalHandler [1] and DTDHandler [2] events. This means you
probably cannot detect unparsed entities with OPS at the moment.

What you could do is serialize your XML document, embed it as a string
in another document, then parse it with XSLT (e.g. w/ saxon:parse), and
then process it further with XSLT. In other words, this will work if you
have only limited requirements for handling unparsed entities.

-Erik

[1] http://www.saxproject.org/apidoc/org/xml/sax/ext/LexicalHandler.html
[2] http://www.saxproject.org/apidoc/org/xml/sax/DTDHandler.html

Alexander Witzigmann wrote:

> we have to retrieve and pass xml instances containing DOCTYPE incl.
> NDATA entities through the pipe. thus the first step would be to pass
> this instances to an output using a custom java processor.
> the next step in the pipe is an XSLT transformation which using
> unparsed-entity-uri(....).
>
> is this kind of use-case currently possible and if so what is the
> easiest way:
>
>     * generating a document contains NDATA entities within a DOCTYPE
>     * output must be passed to next processor which will be some kind of
>       xslt processor
>
> thanks for your help,
>
> alex
>
> --
> ----------------------------------------------------
> TANNER AG
> Alexander Witzigmann
> Kemptener Strasse 99
> D-88131 Lindau
> Germany
>
> tel +49(0)8382/272-142
> fax +49(0)8382/272-900
> mailto:[hidden email]
> http://www.tanner.de
> ----------------------------------------------------
> The ultimate function of prophecy is not to tell the future, but to make it. Your successful past will block your visions of the future.
>
>
> ------------------------------------------------------------------------
>
>
> --
> You receive this message as a subscriber of the [hidden email] mailing list.
> To unsubscribe: mailto:[hidden email]
> For general help: mailto:[hidden email]?subject=help
> ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

--
Orbeon - XForms Everywhere:
http://www.orbeon.com/blog/



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws