OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

 


 

   Re: [xml-dev] XSLT vs. CSS (Re: Indexing)

[ Lists Home | Date Index | Thread Index ]


Simon

  Internet Explorer.  No support for the new CSS2 display properties, on 
  grounds that if you're doing XML, you really should be using XSLT.

This is probably true, although guessing why MS don't implement
standards is something of a black art.

  Microsoft's expectation of XSLT for XML->WordML transformations has also 
  made some things (like present all new SALE elements in red) impossible, 
  while a CSS approach would have made such things pretty simple.

<xsl:template match="SALE">
  <div style="color:red">
   <xsl:apply-imports/>
  </div>
</xsl:template>

Is probably all that's needed to enhance an existing stylesheet with 
that styling.

  XSLT is pretty much perfect for cases where you can't be bothered to do 
  more than map existing structures to XML.

I don't know what you mean here. If I write a document in docbook, or
xmlspec, and use xslt to generate html. (which is my normal mode of
operation) in what way "cant't I be bothered to do more than map
existing structures to XML."?
You obviously have something in mind here, but I have no idea what.

  Unfortunately, putting those 
  transformations into separate processes creates a lot of brittleness, as I 
  think Word demonstrates nicely.

Not being a Word user, I wouldn't know, but I'll take your word for it
that Word demonstrates brittleness.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________




 

News | XML in Industry | Calendar | XML Registry
Marketplace | Resources | MyXML.org | Sponsors | Privacy Statement

Copyright 2001 XML.org. This site is hosted by OASIS