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

Re: Aargh - wrong template applied

Subject: Re: Aargh - wrong template applied
From: Ian Eure <ieure@xxxxxxxxxx>
Date: Wed, 19 Apr 2006 12:54:48 -0700
Re:  Aargh - wrong template applied
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Apr 19, 2006, at 12:44 PM, Michael Kay wrote:

You haven't shown your source document, but my guess is
that your font
elements are in a namespace.

It's an XHTML 1.0 Transitional document, so it has the XHTML
namespace bound on the root node. So, yes, the font element
is in a namespace, but it's the same namespace as everything
else in the document.

The fact that it's the same namespace as everything else is irrelevant. If
it's in a namespace, then references to it in the stylesheet need to be
prefixed.


See http://www.dpawson.co.uk/xsl/sect2/N5536.html #13 and #23

Ok, I get it. Binding the XHTML namespace to the html prefix lets me match with html:font. The document I'm processing now has the XHTML namespace as the default, whereas the other documents I've been working with had no namespace.


It really [expletive deleted] that I can't assign a default namespace in my stylesheet.

- --
Ian Eure
Developer,
eNotes.com LLC



-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (Darwin)

iD8DBQFERpWJxuUdPD6j2IMRAm8CAJ9lQqjjPYQhz254RDNI60OvcRjVsQCfZLUg
b9ITQAhEtqAiIVzJd7Ed6Tg=
=+yLi
-----END PGP SIGNATURE-----

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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.
Email
First Name
Last Name
Company
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.