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] Future of XSL-FO at W3C??

[ Lists Home | Date Index | Thread Index ]

bryan wrote:
 > .exampleblock{background-color:red;font-size:10pt;}
 > .exampleblock fo:block{background-color:green;}
 >
 > <xsl:template match="p">
 > <fo:block>
 > <xsl:apply-templates/>
 > </fo:block></xsl:template>
 >
 > <xsl:template match="section">
 > <fo:block class="exampleblock">
 > <xsl:if test="parent::section"><xsl:attribute
 > name="font-size">13pt</xsl:attribute></xsl:if>
 > <xsl:apply-templates/>
 > </fo:block>
 > </xsl:template>

C'mon, you read all the specs?
<xsl:attribite-set name="exampleblock">
   <xsl:attribute name="background-color">red</xsl:attribute>
   <xsl:attribute name="font-size">10pt</xsl:attribute>
</xsl:attribite-set>

<xsl:template match="section">
   <xsl:element use-attribute-sets="exampleblock" name="fo:block">
     ...

 > Hmm I can somewhat see the point of what you say there, but not really.
 > SVG is a styled object as well, in that in the final analysis it
 > consists of tags that have some specific presentation inherent to them,
 > just as indeed HTML does, yet these can still be styled further.

I don't always consider using CSS an advantage of SVG. It makes dynamic
SVG easier, roughly as DHTML, but if you are shuffling DOM trees from
different producers around, the abomination called "styled DOM" is more
often a PITA than not. It should have never left the place on the tag
soup shores.

J.Pietschmann






 

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

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