This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: Process XHTML embedded in XML


> you wrote:
>   <xsl:template match="caption">
>         <font color="white"><i><xsl:value-of select="."/></i></font>
>   </xsl:template>
> 
> </xsl:stylesheet>

caption is in the xhtml namespace, so you must use a pattern that matches
such an element. So define a prefix for this namespace (e.g. xhtml in the
xsl:stylesheet start tag) and use

<xsl:template match="xhtml:caption"> ....

Cheers,
Oliver


/-------------------------------------------------------------------\
|  ob|do        Dipl.Inf. Oliver Becker                             |
|  --+--        E-Mail: obecker@informatik.hu-berlin.de             |
|  op|qo        WWW:    http://www.informatik.hu-berlin.de/~obecker |
\-------------------------------------------------------------------/


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]