Hi Thomas,

Thanks a million! Before I tried:

        //doc.insertBefore(doc.getDocumentElement(),PI);

And that didn't work, and I became frustrated. But ...
it's the other way around. I'm happy!
My table building library seems to get working.

Although the layout is not yet ok., and the font is Gill Sans, maybe you'll
get an impression of the result. Hundreds of chart/tables etc. need to be
printed from a DB for a book, and it is done automagically thanks to SVG.

Thanks!

Kind regards,

Sanne
----- Original Message ----- 
From: "Thomas DeWeese" <[EMAIL PROTECTED]>
To: "Batik Users" <[EMAIL PROTECTED]>
Sent: Saturday, August 23, 2003 3:21 PM
Subject: Re: Newbie: inserting stylesheet into DOM


> Sanne de Roever wrote:
> > Hi,
> >
> > Well I must be DOM (Dutch for dumb).
> > I want to insert a stylesheet reference into a DOM document:
> >
> > DOMImplementation impl = SVGDOMImplementation.getDOMImplementation();
> > String svgNS = SVGDOMImplementation.SVG_NAMESPACE_URI;
> > Document doc = impl.createDocument(svgNS, "svg", null);
> > ProcessingInstruction PI =
doc.createProcessingInstruction("xml-stylesheet",
> > "type=\"text/css\" href=\"svg.css\" ?>");
> > doc.appendChild(PI);
> >
> > But now the stylesheet ends up last, and doesn't work.
> > My SVG are beautifull, but I have to move the stylesheet reference
manually!
> >
> > Can anybody help me out?
>
>    Try:
>
> doc.insertBefore(PI, doc.getRootElement());
>
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>

<<attachment: output.svg>>

rect.sigmin {fill:#FFFFFF;}
rect.TitleDataCell {fill:#FFFFFF;}
text.TitleText{fill:#333333;font-family:Gill Sans Condensed;font-size:20px;}
text.ColumnHeader {fill:#333333;font-family:Gill Sans Condensed;font-weight:bold;font-size:20px;}
rect.RowSet {fill:#FFFF00;}
text.RowSetHeader {fill:#000000;font-family:Gill Sans Condensed;font-weight:bold;font-size:12px}
rect.Footer {fill:#FFEE00;stroke:blue;stroke-width:0.25;dx:5;}
rect.Row {fill:#333333;}
rect.RowSetHeaderCell {fill:#DDDDDD;stroke:blue;stroke-width:0.25;}
rect.DataCell {fill:#FFFF00;stroke:blue;stroke-width:0.25;}
rect.FooterDataCell {fill:#FFFF00;}
text.FooterText{fill:#333333;font-family:Gill Sans Condensed;font-size:9px;}
text.CenteredText{fill:#333333;font-family:Gill Sans Condensed;font-size:12px;text-anchor:middle;}
text.RowLabel{fill:#333333;font-family:Gill Sans Condensed;font-weight:bold;font-size:12px;}
text.ColumnLabel{fill:#333333;font-family:Gill Sans Condensed;font-weight:bold;font-size:12px;}
text.PercentageScale{fill:#333333;font-family:Gill Sans Condensed;font-size:12px;text-anchor:middle;}
rect.StudieTempo5{fill:#666666;}
rect.StudieTempo6{fill:#999999;}
rect.StudieTempo8{fill:#CCCCCC;}





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to