xsl-list
[Top] [All Lists]

Re: [xsl] Span apply

2007-01-22 06:00:51
Byomokesh rwrote:

  Hi

<SPAN style="font-size: 11pt; font-family:
verdana,arial,helvetica">Chapter I</SPAN>

<xsl:template match="SPAN[(_at_)style='font-size.11pt']">

  That matches SPAN elements where the value of the style
attribute is exactly the string 'font-size.11pt'.  Maybe the
following can help you:

    <xsl:template match="SPAN[contains(@style, 'font-size: 11pt')]">

  If you want a more generic way of matching the format of
the style attribute, you can use XSLT 2.0 and matches(), for
example to match also strings like the following (note the
two spaces):

    style="font-size:  11pt;"

  Regards,

--drkm



















        

        
                
___________________________________________________________________________ 
Découvrez une nouvelle façon d'obtenir des réponses à toutes vos questions ! 
Profitez des connaissances, des opinions et des expériences des internautes sur 
Yahoo! Questions/Réponses 
http://fr.answers.yahoo.com

--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--

<Prev in Thread] Current Thread [Next in Thread>