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


Subject: match="*:style"
From: Merico Raffaele <raffaele.merico@xxxxxxx>
Date: Wed, 20 May 2009 15:34:59 +0200
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())}"
    <xsl:apply-templates select="@*"/>
      <xslo:value-of select="' '"/>

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.