XML Elves

XML Elves

<community>of XML and SVG Developers</community>


Hello and Extension help

This is a discussion on Hello and Extension help within the SVG Questions forums, part of the SVG Forums category; Hi there, I'm currently trying to extend the SVG DTD to allow me to have a new element in the ...


Go Back   XML Elves > SVG Forums > SVG Questions

Register FAQ Members List Calendar Search Today's Posts Mark Forums Read



Click here to register

Reply

 

LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 04-06-2009, 09:48 AM
Junior Member
 
Join Date: Apr 2009
Posts: 1
Default Hello and Extension help

Hi there,
I'm currently trying to extend the SVG DTD to allow me to have a new element in the <line> element like this:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC '-//W3C//DTD SVG 1.1//EN' "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd" [
<!ENTITY % SVG.line.extra.content "| hit">
<!ELEMENT hit (queryId, queryString) >
<!ELEMENT queryId (#PCDATA)>
<!ELEMENT queryString (#PCDATA)> ]>
<svg xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
     xmlns:xalan="http://xml.apache.org/xalan"
     xmlns:xlink="http://www.w3.org/1999/xlink"
     xmlns="http://www.w3.org/2000/svg"
     style="fill-opacity:1; color-rendering:auto; color-interpolation:auto; stroke:black; text-rendering:auto; stroke-linecap:square; stroke-miterlimit:10; stroke-opacity:1; shape-rendering:auto; fill:black; stroke-dasharray:none; font-weight:normal; stroke-width:1; font-family:'Dialog'; font-style:normal; stroke-linejoin:miter; font-size:12; stroke-dashoffset:0; image-rendering:auto;"
     xsi:schemaLocation="http://www.w3.org/1999/xlink "
     width="200"
     height="100">
    <text x="5" y="15" style="font-size:10; font-family:serif; stroke:none;" xml:space="preserve">Test matrix</text>
    <rect x="0" y="30" width="10000" height="70" fill="black" stroke="black" stroke-width="1"/>
    <g stroke="white">
        <line y2="50" style="fill:none;" x1="100" x2="400" y1="50">
            <hit>
                <queryId>123123131232132</queryId>
                <queryString>AAAATGACGAGAGAGAGAGAGAGAG"></queryString>
            </hit>
        </line>
    </g>
 
</svg>
but it's failing to accept the XML as a valid SVG when using Batik's Java JSVGCanvas object. However, Mozilla firefox can view the image fine.

Can someone let me know what I'm doing wrong? I've looked at the W3C site which explains extensibility and I can't get their example version working either.

Many thanks,

Ben
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
extension


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On





All times are GMT -6. The time now is 06:29 AM.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.2

Data recovery laptop
Find cost effective and prompt data recovery services for laptops here, with Data Clinic.


1 2 3 4 5 6 7 8 9 10 11