[ https://issues.apache.org/jira/browse/BATIK-1211?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Artyom Lyan updated BATIK-1211: ------------------------------- Description: Hi guys. Assuming I have the following code {code:xml} <g id="_Group_2"> <path style="fill:#553540;" d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 C116.33,39.33,116.36,39.33,116.36,39.33z" id="_Path_3"/> <g id="_Clip_Group_2"> <g> <g> <defs> <path d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 C116.33,39.33,116.36,39.33,116.36,39.33z" id="SVGID_5_"/> </defs> <clipPath id="SVGID_6_"> <use xlink:actuate="onLoad" xlink:type="simple" xlink:show="embed" style="overflow:visible;" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SVGID_5_"/> </clipPath> <g style="clip-path:url(#SVGID_6_);"> <path style="fill:#88434B;" d="M43.46,11.86l-8.37,7.74c0,0,2.44,13.45,19.39,13.45 c14.52,0,21.34,13.45,23,17.3c0.258,0.6,0.459,1.222,0.6,1.86l0,0l41.6-14L73.12,0L43.46,11.86z" id="_Path_4"/> <path style="fill:#553540;" d="M69.2,3.14l-8.37,7.73c0,0,2.44,13.45,19.39,13.45s23.41,18.33,23.41,18.33 l25.9-6.73L98,4L69.2,3.14z" id="_Path_5"/> </g> </g> </g> </g> </g> {code} I'm trying to transcode it to png, but i get a BridgeException at getReferencedNode, it tells me that element with id "SVGID_6_" cannot be found and crashes. But once I pull that clippath to defs section exception fades out. Is it okay? I could try to fix that. was: Hi guys. Assuming I have the following code {code:svg} <g id="_Group_2"> <path style="fill:#553540;" d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 C116.33,39.33,116.36,39.33,116.36,39.33z" id="_Path_3"/> <g id="_Clip_Group_2"> <g> <g> <defs> <path d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 C116.33,39.33,116.36,39.33,116.36,39.33z" id="SVGID_5_"/> </defs> <clipPath id="SVGID_6_"> <use xlink:actuate="onLoad" xlink:type="simple" xlink:show="embed" style="overflow:visible;" xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#SVGID_5_"/> </clipPath> <g style="clip-path:url(#SVGID_6_);"> <path style="fill:#88434B;" d="M43.46,11.86l-8.37,7.74c0,0,2.44,13.45,19.39,13.45 c14.52,0,21.34,13.45,23,17.3c0.258,0.6,0.459,1.222,0.6,1.86l0,0l41.6-14L73.12,0L43.46,11.86z" id="_Path_4"/> <path style="fill:#553540;" d="M69.2,3.14l-8.37,7.73c0,0,2.44,13.45,19.39,13.45s23.41,18.33,23.41,18.33 l25.9-6.73L98,4L69.2,3.14z" id="_Path_5"/> </g> </g> </g> </g> </g> {code} I'm trying to transcode it to png, but i get a BridgeException at getReferencedNode, it tells me that element with id "SVGID_6_" cannot be found and crashes. But once I pull that clippath to defs section exception fades out. Is it okay? I could try to fix that. > bridge exception on valid clip path > ----------------------------------- > > Key: BATIK-1211 > URL: https://issues.apache.org/jira/browse/BATIK-1211 > Project: Batik > Issue Type: Bug > Reporter: Artyom Lyan > > Hi guys. > Assuming I have the following code > {code:xml} > <g id="_Group_2"> > <path style="fill:#553540;" > > d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 > > c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 > > c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 > C116.33,39.33,116.36,39.33,116.36,39.33z" > id="_Path_3"/> > <g id="_Clip_Group_2"> > <g> > <g> > <defs> > <path > d="M116.36,39.33c-7.851-23.364-33.156-35.94-56.52-28.09L44,16.56l0,0L19.44,24.8 > > c-11.54,3.87-9,21,3.2,21.16h0.3c1.8,0.004,3.594-0.214,5.34-0.65c0.58-0.14,1.7-0.49,1.7-0.49 > > c0.568-0.193,1.145-0.357,1.73-0.49c1.73-0.432,3.507-0.651,5.29-0.65c9.584-0.013,18.1,6.111,21.14,15.2l58.19-19.55 > C116.33,39.33,116.36,39.33,116.36,39.33z" > id="SVGID_5_"/> > > </defs> > <clipPath id="SVGID_6_"> > <use xlink:actuate="onLoad" > xlink:type="simple" > xlink:show="embed" > style="overflow:visible;" > > xmlns:xlink="http://www.w3.org/1999/xlink" > xlink:href="#SVGID_5_"/> > </clipPath> > <g style="clip-path:url(#SVGID_6_);"> > <path style="fill:#88434B;" > > d="M43.46,11.86l-8.37,7.74c0,0,2.44,13.45,19.39,13.45 > c14.52,0,21.34,13.45,23,17.3c0.258,0.6,0.459,1.222,0.6,1.86l0,0l41.6-14L73.12,0L43.46,11.86z" > id="_Path_4"/> > <path style="fill:#553540;" > > d="M69.2,3.14l-8.37,7.73c0,0,2.44,13.45,19.39,13.45s23.41,18.33,23.41,18.33 > l25.9-6.73L98,4L69.2,3.14z" > id="_Path_5"/> > </g> > </g> > </g> > </g> > </g> > {code} > I'm trying to transcode it to png, but i get a BridgeException at > getReferencedNode, it tells me that element with id "SVGID_6_" cannot be > found and crashes. But once I pull that clippath to defs section exception > fades out. > Is it okay? I could try to fix that. -- This message was sent by Atlassian JIRA (v6.4.14#64029) --------------------------------------------------------------------- To unsubscribe, e-mail: batik-dev-unsubscr...@xmlgraphics.apache.org For additional commands, e-mail: batik-dev-h...@xmlgraphics.apache.org