Re: swiXml and CSS
Brennan Stehling <[email protected]>
| Newsgroups | gmane.comp.embedded.carlsbad-cubes |
|---|---|
| Message-ID | <[email protected]> |
There may be ways to implement CSS with SwixML since CSS can be applied to any XML document, but the concept could extend into Swing widgets. Here is the standard method to do it reference a CSS document in XML. http://www.sonnenglanz.nl/Docs/Minicursus/slide.3.4.2.html With SwixML a CSS document could define a limited amount of style information such as colors and font, but not all that is used in HTML/XHTML for a web browser. With CSS you can also bind directly to an XML element with the ID attribute. With that you may have a panel with an ID attribute which you may want to style with a specific color or font. An ID could also identify a button element and the CSS would define the width, height and an image for the button. Existing tools for CSS may make it easier to create valid CSS documents that work with SwixML. A SwixML descriptor may default to certain settings with the option to override with a custom CSS document. With the current XHTML standards, there are fewer attributes allowed with the elements to allow the markup language to control the strucuture while the CSS controls the style. It seems logical for SwixML to evolve in the same way to provide more control over the appearance of an application. The practical motivation for using CSS is to increase usability of SwixML applications. A person who requires large fonts with higher contrast to make text more readable may choose an alternative stylesheet which may help them. Developers could create these style alternatives or common stylesheets could be provided for use with SwixML to provide consistency. - Brennan --- kate rhodes <[email protected]> wrote: > CSS is for web pages... Swixml is for Swing GUIs... > I don't see how the > two have any relation unless you're trying to make > your Swixml files > look pretty when you pull them up in a web browser. > > -Kate > > > Satish Kumar wrote: > > >hi > > > > Can I use swixml for XML file written with > cascaded style sheet?? > > I am not able to get the desired effect of CSS > with XML. > > Could you please explain. > > > > Thanking in advance > > > >Regards > >Satish Kumar > > > >_______________________________________________ > >Forum mailing list > >[email protected] > >http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com > > > > > > > > > > > _______________________________________________ > Forum mailing list > [email protected] > http://carlsbadcubes.com/mailman/listinfo/forum_carlsbadcubes.com __________________________________ Do you Yahoo!? Yahoo! SiteBuilder - Free web site building tool. Try it! http://webhosting.yahoo.com/ps/sb/