Early draft of "Powered by eXist" in SVG

View: New views
20 Messages — Rating Filter:   Alert me  

Early draft of "Powered by eXist" in SVG

by Dan McCreary :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Kurt and I (actually Kurt did the hard parts) put together a quick
logo for eXist using SVG.  Since the SVG filters
are not exactly the same on each platforms it is not an exact
duplication of the original logo but one that might be OK for a very
small "Powered by eXist" logo in the header or footer.  We are also
aware the logo may change so we did not put to much effort into it.

We have tested it on Firefox, Opera, Chrome and Safari.  It works well
on the FireFox and Opera but renders incompletely but sufficiently on
Chrome and Safari since their SVG engines are still under
development..

Note that on IE you should be able to get the logo to run under SVGWeb
http://code.google.com/p/svgweb using Flash but we have not spent much
time testing this.  Kurt and I are both interested in looking into the
long-term ability to have SVGWeb integrated into eXist but we may not
get to that for a while.

If you have trouble with attachments let me know I can send you a link
to the file.

- Dan and Kurt

Kurt Cagle
Managing Editor
http://xmlToday.org

Dan McCreary
Semantic Solutions Architect
syntactica.com
cell: (612) 986-1552
dan@...


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

eXist-logo.svg (9K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by Dmitriy Shabanov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Cool!

Do you have source?

I did set it to 10% (50x30) and ... will be good to make "Powered by" a
little bigger. (from first <SPEECH> to same bottom line)

--
Cheers,

Dmitriy Shabanov

On Mon, 2009-11-02 at 11:08 -0600, Dan McCreary wrote:

> Kurt and I (actually Kurt did the hard parts) put together a quick
> logo for eXist using SVG.  Since the SVG filters
> are not exactly the same on each platforms it is not an exact
> duplication of the original logo but one that might be OK for a very
> small "Powered by eXist" logo in the header or footer.  We are also
> aware the logo may change so we did not put to much effort into it.
>
> We have tested it on Firefox, Opera, Chrome and Safari.  It works well
> on the FireFox and Opera but renders incompletely but sufficiently on
> Chrome and Safari since their SVG engines are still under
> development..
>
> Note that on IE you should be able to get the logo to run under SVGWeb
> http://code.google.com/p/svgweb using Flash but we have not spent much
> time testing this.  Kurt and I are both interested in looking into the
> long-term ability to have SVGWeb integrated into eXist but we may not
> get to that for a while.
>
> If you have trouble with attachments let me know I can send you a link
> to the file.
>
> - Dan and Kurt
>
> Kurt Cagle
> Managing Editor
> http://xmlToday.org
>
> Dan McCreary
> Semantic Solutions Architect
> syntactica.com
> cell: (612) 986-1552
> dan@...
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
> _______________________________________________ Exist-open mailing list Exist-open@... https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Loren Cahlander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Here is how the image renders on Safari:





The net from exist.sourceforege.net did not render.

Loren

On Nov 2, 2009, at 11:08 AM, Dan McCreary wrote:

> Kurt and I (actually Kurt did the hard parts) put together a quick
> logo for eXist using SVG.  Since the SVG filters
> are not exactly the same on each platforms it is not an exact
> duplication of the original logo but one that might be OK for a very
> small "Powered by eXist" logo in the header or footer.  We are also
> aware the logo may change so we did not put to much effort into it.
>
> We have tested it on Firefox, Opera, Chrome and Safari.  It works well
> on the FireFox and Opera but renders incompletely but sufficiently on
> Chrome and Safari since their SVG engines are still under
> development..
>
> Note that on IE you should be able to get the logo to run under SVGWeb
> http://code.google.com/p/svgweb using Flash but we have not spent much
> time testing this.  Kurt and I are both interested in looking into the
> long-term ability to have SVGWeb integrated into eXist but we may not
> get to that for a while.
>
> If you have trouble with attachments let me know I can send you a link
> to the file.
>
> - Dan and Kurt
>
> Kurt Cagle
> Managing Editor
> http://xmlToday.org
>
> Dan McCreary
> Semantic Solutions Architect
> syntactica.com
> cell: (612) 986-1552
> dan@...

------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

powered-by-exist.png (70K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by Michael Kolb :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hey,

this seems to be the great eXist-svg-logo-contest-week!

I did the attached Artwork on Saturday Night and sent it to dannes. Maybe
you find it useful. But I didn't test it in a Browser anyway. It's created
with Illustrator CS4

Michael

-----Ursprüngliche Nachricht-----
Von: Loren Cahlander [mailto:loren.cahlander@...]
Gesendet: Montag, 2. November 2009 18:30
An: dan@...
Cc: exist-open@...
Betreff: Re: [Exist-open] Early draft of "Powered by eXist" in SVG

Here is how the image renders on Safari:



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

exist.svg (455K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by Kurt Cagle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Michael,

I really like the fact that it renders out like an animation, even without there being an animation present. Very sweet.

Kurt Cagle
Managing Editor
http://xmlToday.org


On Mon, Nov 2, 2009 at 10:38 AM, Michael Kolb <mkolb2@...> wrote:
Hey,

this seems to be the great eXist-svg-logo-contest-week!

I did the attached Artwork on Saturday Night and sent it to dannes. Maybe
you find it useful. But I didn't test it in a Browser anyway. It's created
with Illustrator CS4

Michael

-----Ursprüngliche Nachricht-----
Von: Loren Cahlander [mailto:loren.cahlander@...]
Gesendet: Montag, 2. November 2009 18:30
An: dan@...
Cc: exist-open@...
Betreff: Re: [Exist-open] Early draft of "Powered by eXist" in SVG

Here is how the image renders on Safari:


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by José Marí­a Fernández González :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

With Inkscape SVG editor 0.46 the rendering is similar to Safari, but with Firefox 3.0.14 and Opera the rendering is nicer IMHO (see attached file from a Firefox snapshot).

OTOH SVGWeb is a client-side technology, which uses a Flash program as SVG renderer (including SMIL animations!). On the HTML page you are going to embed SVG you have to refer to SVGWeb javascript library. I'm not using SVGWeb yet, but I was very impressed by the examples when I evaluated it.

        José María

On 11/02/09 18:29, Loren Cahlander wrote:

> Here is how the image renders on Safari:
>
>
>
> The net from exist.sourceforege.net did not render.
>
> Loren
>
> On Nov 2, 2009, at 11:08 AM, Dan McCreary wrote:
>
>> Kurt and I (actually Kurt did the hard parts) put together a quick
>> logo for eXist using SVG.  Since the SVG filters
>> are not exactly the same on each platforms it is not an exact
>> duplication of the original logo but one that might be OK for a very
>> small "Powered by eXist" logo in the header or footer.  We are also
>> aware the logo may change so we did not put to much effort into it.
>>
>> We have tested it on Firefox, Opera, Chrome and Safari.  It works well
>> on the FireFox and Opera but renders incompletely but sufficiently on
>> Chrome and Safari since their SVG engines are still under
>> development..
>>
>> Note that on IE you should be able to get the logo to run under SVGWeb
>> http://code.google.com/p/svgweb using Flash but we have not spent much
>> time testing this.  Kurt and I are both interested in looking into the
>> long-term ability to have SVGWeb integrated into eXist but we may not
>> get to that for a while.
>>
>> If you have trouble with attachments let me know I can send you a link
>> to the file.
>>
>> - Dan and Kurt
>>
>> Kurt Cagle
>> Managing Editor
>> http://xmlToday.org
>>
>> Dan McCreary
>> Semantic Solutions Architect
>> syntactica.com
>> cell: (612) 986-1552
>> dan@...
>
>
>
> ------------------------------------------------------------------------------
> Come build with us! The BlackBerry(R) Developer Conference in SF, CA
> is the only developer event you need to attend this year. Jumpstart your
> developing skills, take BlackBerry mobile applications to market and stay
> ahead of the curve. Join us from November 9 - 12, 2009. Register now!
> http://p.sf.net/sfu/devconference
>
>
>
> _______________________________________________
> Exist-open mailing list
> Exist-open@...
> https://lists.sourceforge.net/lists/listinfo/exist-open
--
"La violencia es el último recurso del incompetente"
        - Salvor Hardin en "La Fundación" de Isaac Asimov
"Premature optimization is the root of all evil." - Donald Knuth

José María Fernández González
e-mail: josemariafg@...


------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

eXist-logo-firefox.png (92K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi,

So, now do we have an eXist logo in SVG format?

Claudius

Re: Early draft of "Powered by eXist" in SVG

by Dmitriy Shabanov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I did ask my friend (painter) to help with logo. The main target was to
make existing draft look "full & recognizable".

The result is attached.

--
Cheers,

Dmitriy Shabanov


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

eXist-logo_.svg (11K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by Loren Cahlander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I like this one.  In the comments in the file, it says that the alignment mark could be removed from the graphic.  I think that it should.  Was is the consensus?

It is unfortunate, but SVG renders poorly under Safari.

Firefox

Safari

And IE does not render it at all.

We should probably develop a standard script to render the logo and check the User Agent header value and return a PNG file if the User Agent is Safari or IE otherwise return the SVG file.


util:stream-logo() empty()
Render the eXist logo based on the user agent value from the calling browser.  If the calling browser is Safari or IE, then stream the PNG, otherwise stream the SVG.

We could specify a configuration file that would map various user agent strings to different logo resources.

Loren

On Nov 4, 2009, at 10:43 AM, Dmitriy Shabanov wrote:

I did ask my friend (painter) to help with logo. The main target was to
make existing draft look "full & recognizable".

The result is attached.

--
Cheers,

Dmitriy Shabanov




------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message


We should probably develop a standard script to render the logo and check the User Agent header value and return a PNG file if the User Agent is Safari or IE otherwise return the SVG file.


util:stream-logo() empty()
Render the eXist logo based on the user agent value from the calling browser.  If the calling browser is Safari or IE, then stream the PNG, otherwise stream the SVG.

We could specify a configuration file that would map various user agent strings to different logo resources.


Do we have enough 'base' functions to implement this as an XQuery module? I am not sure this is a good candidate for implementation in Java, I would rather see 'building block' functions implemented in Java.
 
--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Loren Cahlander :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adam,

I believe that we do have the capability without writing it in Java.  Do we want to have an exist:stream-logo() empty() then?

Have a configuration file that contains the list of strings to search for in the user agent string and if we find a match, then stream the SVG, otherwise strem the PNG?

Loren

On Nov 4, 2009, at 02:29 PM, Adam Retter wrote:


We should probably develop a standard script to render the logo and check the User Agent header value and return a PNG file if the User Agent is Safari or IE otherwise return the SVG file.


util:stream-logo() empty()
Render the eXist logo based on the user agent value from the calling browser.  If the calling browser is Safari or IE, then stream the PNG, otherwise stream the SVG.

We could specify a configuration file that would map various user agent strings to different logo resources.


Do we have enough 'base' functions to implement this as an XQuery module? I am not sure this is a good candidate for implementation in Java, I would rather see 'building block' functions implemented in Java.
 
--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

It is very noce.

Shouldn't the link be pointing to exist-db.org instead of sourceforge, should it?

Claudius

Re: Early draft of "Powered by eXist" in SVG

by Dmitriy Shabanov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Wed, 2009-11-04 at 14:35 -0800, claud108 wrote:
> It is very noce.
>
> Shouldn't the link be pointing to exist-db.org instead of sourceforge,
> should it?

fixed.
 
--
Thanks,

Dmitriy Shabanov


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

eXist-logo_.svg (11K) Download Attachment

Re: Early draft of "Powered by eXist" in SVG

by Kurt Cagle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

I think we should be thinking about this one a little more strategically. Having spent a while with browscap (code's mostly written, but I need to write up documentation and will post it probably this weekend), I can tell you that getting the browser from the user agent header is non-trivial (browscap.ini is a friggin' nightmare!)

I'd like to propose both a browser: namespace and an svg: namespace. The browser namespace would have the following methods:

browser:get-browser-type() as xs:string
Returns the browser based upon the user agent string, reading from either a modified browscap database or a similar database.
browser:get-capability-names() as xs:string*
Returns the name of all of the capabilities currently supported for this browser type
browser:get-capability($capability-name as xs:string,$default-value as xs:string) as xs:string
Returns, for a given property name, the value associated with that capability, or a default when this isn't otherwise provided.
browser:set-user-agent($user-agent as xs:string) void
Overrides the user agent string with a string of the author's choosing. This might also be part of request:, though I'd be loathe to back-port into that API.
browser:get-browscap-entry($user-agent-string as xs:string) as node()
Adds or updates the browscap entry for the given user agent string prototype (details to come on this)
browser:match-browscap-entries($user-agent-string as xs:string) as node()*
Retrieves a collection of all browscap entries that satisfy the given user agent string.
browser:update-browscap-entry($browscap-entry as node()*) as xs:boolean
Adds or updates the browscap entry for the given user agent string prototype (details to come on this)
browser:delete-browscap-entry($user-agent-string as xs:string) xs:boolean
          Removes the browscap entry for the given user agent string.

These could be written in XQuery (especially once an internal browscap format is standardized, perhaps based upon the W3C Device Description Repository Specs at http://www.w3.org/TR/2008/REC-DDR-Simple-API-20081205/).

I'd have to think a little more about the svg: namespace, but it would probably look something like:

svg:render($svg-node as node(), $width as xs:double, $height as xs:double,$format as xs:string, $engine as xs:string) as xs:base64Binary
This would render an SVG document at the specified width and height to the given output format (whatever is supported by the rendering engine, as a mime-type), using the rendering engine as given by an enumerated set of names. The assumption would be that the default engine (the one provided with eXist) would be Batik 1.7 (http://xmlgraphics.apache.org/batik/). This may also be provided as part of FOP, not sure.
svg:wrap-svg-web($svg-resource-URL as xs:anyURI,$prefer-native-svg as xs:boolean) as node()
This will create an <object> reference which will load the SVG document given at $svg-resource-URL using Google's svg-web Flash renderer. The $prefer-native-svg resource will check the browser type and an SVG configuration resource (possibly in conf.xml, possibly elsewhere) to determine whether the given browser supports SVG natively. If $prefer-native-svg is true, then this will be used preferentially for the indicated browsers, passing the file out as an SVG sequence to be handed off to the output stream, otherwise (both if it the browser is not on the list or if the flag is set to false) then svg-web processor will be used preferentially.

Kurt Cagle
Managing Editor
http://xmlToday.org


On Wed, Nov 4, 2009 at 12:29 PM, Adam Retter <adam@...> wrote:

We should probably develop a standard script to render the logo and check the User Agent header value and return a PNG file if the User Agent is Safari or IE otherwise return the SVG file.


util:stream-logo() empty()
Render the eXist logo based on the user agent value from the calling browser.  If the calling browser is Safari or IE, then stream the PNG, otherwise stream the SVG.

We could specify a configuration file that would map various user agent strings to different logo resources.


Do we have enough 'base' functions to implement this as an XQuery module? I am not sure this is a good candidate for implementation in Java, I would rather see 'building block' functions implemented in Java.
 
--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Kurt Cagle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

A follow up on this - the svg component would almost certainly have to be implemented from Java, as the Batik library would need to be invoked through the Java interfaces.

I realize that this is a lot of work for a little logo, but I think that there are a lot of potential cases for SVG integration.

I should have a prototype XQuery implementation of browser: up this weekend as mentioned, will forward it to this list.

Kurt Cagle
Managing Editor
http://xmlToday.org



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Adam Retter-3 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

> browser:set-user-agent($user-agent as xs:string) void

I guess this is just a wrapper arount response:set-header()


> svg:render($svg-node as node(), $width as xs:double, $height as
> xs:double,$format as xs:string, $engine as xs:string) as xs:base64Binary
> This would render an SVG document at the specified width and height to the
> given output format (whatever is supported by the rendering engine, as a
> mime-type), using the rendering engine as given by an enumerated set of
> names. The assumption would be that the default engine (the one provided
> with eXist) would be Batik 1.7 (http://xmlgraphics.apache.org/batik/). This
> may also be provided as part of FOP, not sure.
> svg:wrap-svg-web($svg-resource-URL as xs:anyURI,$prefer-native-svg as
> xs:boolean) as node()
> This will create an <object> reference which will load the SVG document
> given at $svg-resource-URL using Google's svg-web Flash renderer. The
> $prefer-native-svg resource will check the browser type and an SVG
> configuration resource (possibly in conf.xml, possibly elsewhere) to
> determine whether the given browser supports SVG natively. If
> $prefer-native-svg is true, then this will be used preferentially for the
> indicated browsers, passing the file out as an SVG sequence to be handed off
> to the output stream, otherwise (both if it the browser is not on the list
> or if the flag is set to false) then svg-web processor will be used
> preferentially.

Do we need a dedicated SVG namespace (will there be lots of SVG
functions?), or could these fit into the existing "image" module?

> Kurt Cagle
> Managing Editor
> http://xmlToday.org
>
>
> On Wed, Nov 4, 2009 at 12:29 PM, Adam Retter <adam@...> wrote:
>>>
>>> We should probably develop a standard script to render the logo and check
>>> the User Agent header value and return a PNG file if the User Agent is
>>> Safari or IE otherwise return the SVG file.
>>> stream-logo
>>> ________________________________
>>> util:stream-logo() empty()
>>> Render the eXist logo based on the user agent value from the calling
>>> browser.  If the calling browser is Safari or IE, then stream the PNG,
>>> otherwise stream the SVG.
>>> We could specify a configuration file that would map various user agent
>>> strings to different logo resources.
>>
>> Do we have enough 'base' functions to implement this as an XQuery module?
>> I am not sure this is a good candidate for implementation in Java, I would
>> rather see 'building block' functions implemented in Java.
>>
>> --
>> Adam Retter
>>
>> eXist Developer
>> { United Kingdom }
>> adam@...
>> irc://irc.freenode.net/existdb
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Exist-open mailing list
>> Exist-open@...
>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>
>
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb

------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by Kurt Cagle-2 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Adam,

> browser:set-user-agent($user-agent as xs:string) void

I guess this is just a wrapper arount response:set-header()


Yes, which is why it's really the only one I had qualms about.

Do we need a dedicated SVG namespace (will there be lots of SVG
functions?), or could these fit into the existing "image" module?


I could see it working with the existing image: module. I can't see, beyond these two, more than maybe one or two more, and it would be a good candidate, just concerned, as usual, about changing existing interfaces. 
 
> Kurt Cagle
> Managing Editor
> http://xmlToday.org
>
>
> On Wed, Nov 4, 2009 at 12:29 PM, Adam Retter <adam@...> wrote:
>>>
>>> We should probably develop a standard script to render the logo and check
>>> the User Agent header value and return a PNG file if the User Agent is
>>> Safari or IE otherwise return the SVG file.
>>> stream-logo
>>> ________________________________
>>> util:stream-logo() empty()
>>> Render the eXist logo based on the user agent value from the calling
>>> browser.  If the calling browser is Safari or IE, then stream the PNG,
>>> otherwise stream the SVG.
>>> We could specify a configuration file that would map various user agent
>>> strings to different logo resources.
>>
>> Do we have enough 'base' functions to implement this as an XQuery module?
>> I am not sure this is a good candidate for implementation in Java, I would
>> rather see 'building block' functions implemented in Java.
>>
>> --
>> Adam Retter
>>
>> eXist Developer
>> { United Kingdom }
>> adam@...
>> irc://irc.freenode.net/existdb
>>
>>
>> ------------------------------------------------------------------------------
>> Let Crystal Reports handle the reporting - Free Crystal Reports 2008
>> 30-Day
>> trial. Simplify your report design, integration and deployment - and focus
>> on
>> what you do best, core application coding. Discover what's new with
>> Crystal Reports now.  http://p.sf.net/sfu/bobj-july
>> _______________________________________________
>> Exist-open mailing list
>> Exist-open@...
>> https://lists.sourceforge.net/lists/listinfo/exist-open
>>
>
>



--
Adam Retter

eXist Developer
{ United Kingdom }
adam@...
irc://irc.freenode.net/existdb


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

Re: Early draft of "Powered by eXist" in SVG

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

So, can we have a final form of this SVG logo, in order to use it?

Thank you for efforts,
Claudius Teodorescu

Re: Early draft of "Powered by eXist" in SVG

by claud108 :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

Hi, thank you for this.

Can we have it with a smaller size (in kB)?

Claudius Teodorescu

Re: Early draft of "Powered by eXist" in SVG

by Dmitriy Shabanov :: Rate this Message:

Reply to Author | View Threaded | Show Only this Message

On Tue, 2009-11-17 at 09:00 -0800, claud108 wrote:
> Hi, thank you for this.
>
> Can we have it with a smaller size (in kB)?
>
> Claudius Teodorescu

Mix is svgz, but I don't know is it wide supported.

--
Cheers,

Dmitriy Shabanov



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day
trial. Simplify your report design, integration and deployment - and focus on
what you do best, core application coding. Discover what's new with
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Exist-open mailing list
Exist-open@...
https://lists.sourceforge.net/lists/listinfo/exist-open

eXist-logo (2250 bytes).svgz (3K) Download Attachment
eXist-logo (8898 bytes).svg (9K) Download Attachment