[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: XSLT and SVG

Subject: RE: XSLT and SVG
From: "Chris Bayes" <Chris@xxxxxxxxxxx>
Date: Tue, 19 Sep 2000 09:30:11 +0100
svg change style
>Chris Bayes wrote:
>
>> Your question prompted me to play around with this a little. I
>decided that
>> one of the difficult things to do was to change a css property within a
>> style attribute. Normally I would do my styling solely within my xslt
>> stylesheet and ignore any styling in the xml document but with
>SVG you have
>> your styling in the source document so it is not that easy.
>
>Just pointing out that nothing precludes using style elements of external
>stylesheets in SVG.

No very true but they don't normally override style attributes on elements.

>Also, why edit a style attribute?

Why not it was just an excersize.

>Why not just add a
>selector of higher specificity that overrides the property you want to
>change?

Not sure what you mean here. Are you talking about !important or
<text...style="color:red;"><span style="color:blue;">some text</span></text>

I think it is cleaner to change the style attribute rather than overriding
things or having external stylesheets. Less stuff to transmit and maintain.

>
>> So I decided to write an xslt that would change one css property
>of the xml
>> in the stylesheet. If you want to change more than one or two then it is
>> probably easier to just replace the style attribute but they can
>get quite
>> large so you wouldn't want to do that for just say the fill or stroke
>> colour.
>> [...]
>> So what looked like a simple answer to a simple problem *isn't*. Maybe Ms
>> and Mike can shed some light on this
>
>I think this is a case where server-side DOM 2 makes more sense than
>server-side XSL-T.

Possibly but the question was about XSLT and the more weapons in your
armoury the better.

Ciao Chris


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.