I'm not familiar with textmate but I do use a vim plugin sometimes to
validate my styles.  It's pretty basic but at least I can run a validator
and jump to lines with errors.

https://github.com/dwins/vim-sld

At its heart it is just delegating the actual validation work to the
xmllint command (which I believe is available in default Mac installs?)  So
you might be able to put together a Textmate extension easily to do the
same thing.

http://xmlsoft.org/xmllint.html

Here's the actual command from the vim script:

xmllint\ --schema\ ~/.vim/xsd/sld/StyledLayerDescriptor.xsd\ --noout\
(filename goes here)

--
David Winslow
OpenGeo - http://opengeo.org/

On Tue, Mar 6, 2012 at 7:42 AM, Charles Galpin <[email protected]> wrote:

> I don't have an answer for this, but wanted to make sure you knew about
> the CSS styling module if you haven't tried it.
>
> http://docs.geoserver.org/stable/en/user/community/css/index.html
>
> I found the SLD very verbose and hard to manage (my styles grew over 1000
> lines). The CSS module allows you to write much more compact rules in
> easier to read/write syntax and even has a preview so you can see the
> effects of your changes.
>
> The module generates SLD so the end product is the same and compatible
> with installations that do not have the module installed.
>
> charles
>
> On Mar 6, 2012, at 4:33 AM, Gis Mage wrote:
>
> > I'm looking for the proper text editor to edit SLD files.
>
>
>
> ------------------------------------------------------------------------------
> Keep Your Developer Skills Current with LearnDevNow!
> The most comprehensive online learning library for Microsoft developers
> is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
> Metro Style Apps, more. Free future releases when you subscribe now!
> http://p.sf.net/sfu/learndevnow-d2d
> _______________________________________________
> Geoserver-users mailing list
> [email protected]
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
------------------------------------------------------------------------------
Keep Your Developer Skills Current with LearnDevNow!
The most comprehensive online learning library for Microsoft developers
is just $99.99! Visual Studio, SharePoint, SQL - plus HTML5, CSS3, MVC3,
Metro Style Apps, more. Free future releases when you subscribe now!
http://p.sf.net/sfu/learndevnow-d2d
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to