xmlgraphics-batik-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Thomas E Deweese <thomas.dewe...@kodak.com>
Subject Re: id bug incl. ':'
Date Wed, 23 Apr 2003 13:58:15 GMT
>>>>> "VH" == Vincent Hardy <vincent.hardy@sun.com> writes:

VH> Thomas is our URL expert and he will likely have more
VH> comments. Here are some elements of answers.

VH> You have uncovered a bug. We should support ids with ':' as this
VH> is valid in an XML ID as per the XML specification. Tracing
VH> URIResolver, it looks like a ParsedURL issue.

    This is now fixed in CVS (your example works and new ParsedURL
tests have been added).  Share and Enjoy!

VH> In addition, and this is orthogonal to your problem, we currently
VH> only treat IDREF values as local references if the xml:base value
VH> resolves to null. I have looked into the spec. and my
VH> understanding is that all references starting with a '#' are
VH> indeed local references (reading the 5.3.1 section of the SVG
VH> specification) regardless of what xml:base is.  So my feeling is
VH> that the value of xml:base should not be accounted for in
VH> URIResolver line 88. I may have missed something: we'll see if the
VH> author of that class (Stephane) has comments.

    Still orthoginal to your problem, Vincent & I discussed this and
based on section 4.2 of IETF RFC 2396 we have decided that it is
correct to include xml:base in the resolution of href's that only
contain a fragment identifier.

VH> Vincent.

VH> HATORI Kazushige wrote:
>> Hi, users.
>> 
>> is it a known bug id including ':' would not work at <use> element
>> ex. seeing below or caused by some specification on Batik-1.5 ?
>> 
>> Hope to hear the reason from someone.  Thank you in advance.
>> ------
>> <?xml version="1.0" standalone="no"?> <!DOCTYPE svg PUBLIC
>> "-//W3C//DTD SVG 1.0//EN"
>> "http://www.w3.org/TR/2001/REC-SVG-20010904/DTD/svg10.dtd"> <svg
>> width="100%" height="100%" preserveAspectRatio="xMidYMid meet"
>> zoomAndPan="magnify" xmlns="http://www.w3.org/2000/svg">
>> 
>> <defs> <g id="rct:1"> <rect x="100" y="100" width="100"
>> height="100" fill="yellow" /> </g> </defs>
>> 
>> <rect x="0" y="0" width="319.5" height="461.5" stroke-width="1"
>> stroke="#FEE694" fill="#FEE694"/> <g transform="translate(30,30),
>> scale(0.5,0.5)"> <rect x="0" y="0" width="519" height="803"
>> fill="red" /> </g> <use xlink:href="#rct:1"/> </svg>
>> ------
>> hatori
>> 
>> 
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
>> additional commands, e-mail: batik-users-help@xml.apache.org
>> 
>> 



VH> ---------------------------------------------------------------------
VH> To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org For
VH> additional commands, e-mail: batik-users-help@xml.apache.org




---------------------------------------------------------------------
To unsubscribe, e-mail: batik-users-unsubscribe@xml.apache.org
For additional commands, e-mail: batik-users-help@xml.apache.org


Mime
View raw message