Hi Michael,
You're correct. For saxon 8 I only place saxon8.jar on the classpath,
because I thought that would contain everything. But for saxon 9 I
placed all jars on the classpath including saxon9-dom.jar.
It would be great if you could implement this for the DOM
DocumentWrapper though :)
Thanks,
Ewout
-----Original Message-----
From: Michael Kay [mailto:mike@...]
Sent: Monday, October 27, 2008 9:09 PM
To: 'Mailing list for the SAXON XSLT and XQuery processor'
Subject: Re: [saxon] Unparsed-entity-uri returns empty string
I've looked in some old source code, and as far as I can tell
unparsed-entity-uri() has never been supported when the input is a DOM
Document. I suspect that when you switched to saxon8, you switched from
using a DOM to using a Saxon tree at the same time.
Looking at the DOM spec, it would seem possible to provide this
information
using getDocumentType().getEntities(). I'll look into it.
Michael Kay
http://www.saxonica.com/
> -----Original Message-----
> From: Graswinckel_Ewout@... [mailto:Graswinckel_Ewout@...]
> Sent: 27 October 2008 17:07
> To: saxon-help@...
> Subject: [saxon] Unparsed-entity-uri returns empty string
>
> Hi,
>
> I'm trying to use the unparse-entity-uri() function, but it
> keeps returning an empty string. I'm only have this problem
> with saxon 9. When I switch to saxon 8 it works as expected.
>
> I downloaded the saxon source code and found the following in
> net.sf.saxon.dom.DocumentWrapper:
>
> /**
> * Get the unparsed entity with a given name
> *
> * @param name the name of the entity
> * @return null: JDOM does not provide access to unparsed entities
> */
>
> public String[] getUnparsedEntity(String name) {
> return null;
> }
>
> This appears to be a copy+paste mistake from
> net.sf.saxon.JDOM.DocumentWrapper because as far as I know
> normal DOM does support retrieving unparsed entities.
>
> Is this correct, or should I keep looking? :)
>
> Thanks,
> Ewout
>
> --------------------------------------------------------------
> -----------
> This SF.Net email is sponsored by the Moblin Your Move
> Developer's challenge Build the coolest Linux based
> applications with Moblin SDK & win great prizes Grand prize
> is a trip for two to an Open Source event anywhere in the
> world http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> saxon-help mailing list archived at
> http://saxon.markmail.org/ saxon-help@...
> https://lists.sourceforge.net/lists/listinfo/saxon-help
------------------------------------------------------------------------
-
This SF.Net email is sponsored by the Moblin Your Move Developer's
challenge
Build the coolest Linux based applications with Moblin SDK & win great
prizes
Grand prize is a trip for two to an Open Source event anywhere in the
world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
saxon-help mailing list archived at http://saxon.markmail.org/
saxon-help@...
https://lists.sourceforge.net/lists/listinfo/saxon-help
|