List Info

Thread: FYI: Possible DOM problems with namespace URIs for attributes




FYI: Possible DOM problems with namespace URIs for attributes
user name
2006-03-15 14:48:06
Oh thanks, I looked for something like this but didn't find
it. Hmm. Ok,
then we need to call it a bug in Batik. Sorry, guys. 

On 15.03.2006 15:43:24 Robin Berjon wrote:
> On Mar 15, 2006, at 15:26, Jeremias Maerki wrote:
> > Due to my recent work on changing the way SVG
graphics are loaded  
> > in FOP
> > and a special XML parser/XSLT impl setup I
discovered a potential  
> > source
> > of problems. For example, if you use SAXON 8 as
your XSLT  
> > implementation
> > and use the XSLT output to build up the SVG DOM
you might run into
> > problems with attributes: The namespace URI for
attributes will be an
> > empty string ("", used by SAX) instead
of null (used by W3C). The  
> > Batik
> > DOM currently doesn't normalize empty strings to
null. It may be  
> > good to
> > eventually do more defensive programming in this
area.
> 
> It's not just defensive, it's actually required for
conformance to  
> the DOM: "In programming languages where empty
strings can be  
> differentiated from null, empty strings, when given as
a namespace  
> URI, are converted to null." --http://www.w3.
org/TR/DOM-Level-3-Core/ 
> core.html#Namespaces-Considerations


Jeremias Maerki


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org

FYI: Possible DOM problems with namespace URIs for attributes
user name
2006-03-16 01:51:37
Jeremias Maerki:
> Oh thanks, I looked for something like this but didn't
find it. Hmm. Ok,
> then we need to call it a bug in Batik. Sorry, guys.


Made some changes to SVN, let me know if it makes Saxon work
properly
with Batik now.

-- 
 Cameron McCormack			ICQ: 26955922
 cam (at) mcc.id.au			MSN: cam (at) mcc.id.au
 http://mcc.id.au/			JBR:
heycam (at) jabber.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org

FYI: Possible DOM problems with namespace URIs for attributes
user name
2006-03-16 07:47:30
Excellent! It works, both with SAXON and older Xalan-J
versions.

On 16.03.2006 02:51:37 Cameron McCormack wrote:
> Jeremias Maerki:
> > Oh thanks, I looked for something like this but
didn't find it. Hmm. Ok,
> > then we need to call it a bug in Batik. Sorry,
guys. 
> 
> Made some changes to SVN, let me know if it makes Saxon
work properly
> with Batik now.


Jeremias Maerki


------------------------------------------------------------
---------
To unsubscribe, e-mail: batik-dev-unsubscribexmlgraphics.apache.org
For additional commands, e-mail: batik-dev-helpxmlgraphics.apache.org

[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )