[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

RE: match="*:style"

Subject: RE: match="*:style"
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Mon, 25 May 2009 16:52:23 +0100
RE:  match="*:style"
This is a previously unreported bug in Saxon 9.1. I have logged it at


and a patch is being tested.


Michael Kay

> -----Original Message-----
> From: Merico Raffaele [mailto:raffaele.merico@xxxxxxx] 
> Sent: 20 May 2009 14:35
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  match="*:style"
> Dear Community
> I process HTML/XHTML files passed as input to my XSLT 
> stylesheet. I'm working with SaxonB
> In order to catch the <style/> tag in the HTML/XHTML input 
> file I defined the following match-rule. 
> <xsl:template match="*:style[empty(./*) and 
> normalize-space(./text()) eq '']">
>   <xsl:element name="{node-name(current())}"
> namespace="{namespace-uri(current())}">
>     <xsl:apply-templates select="@*"/>
>       <xslo:value-of select="' '"/>
>   </xsl:element>
> </xsl:template>
> Now I am surprised that above match applies also to 
> style-attributes (i.e.
> style="border: 1px solid red;").
> I can imagine that this is caused by the star in the match.
> I used the star to mask the namespace-prefix in order match 
> style-tags in the null and in the XHTML namespace (without prefix). 
> Can anybody please explain me why this happens? 
> Many thanks in advance
> Raffaele Merico

Current Thread


Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
First Name
Last Name
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.