[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: Fw: CSS and XSL
Simon St.Laurent wrote: > > On the other hand, I think it actually complicates the task of creating > fixed styles for particular elements - there's no way (yet) to specify a > default child element and its attributes using an XML DTD or (if > I remember > right) a schema. Since different elements would need different default > styles, this could get even more complex, and XML DTDs lack any mechanism > (like CSS selectors) for identifying location within a tree of elements. > It should be possible to combine the two approaches. A default style attribute can be specified in an XML DTD. When a style="x" or class="x" attribute exists, locally applied style attributes should cascade onto the attributes specified in the DTD, thus XSL can be used to apply style on a tree location dependent fashion, either with the use of css:chunk or using predefined styles in a external css sheet. Jonathan Borden http://jabr.ne.mediaone.net XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|