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

RE: The identity transform and all <a> links: xslt 1.0

Subject: RE: The identity transform and all <a> links: xslt 1.0
From: "Marroc" <marrocdanderfluff@xxxxxxxxxxx>
Date: Thu, 24 Jan 2008 15:00:20 -0000
RE:  The identity transform and all <a> links: xslt 1.0
That was hard... but worth it! Thanks guys.

I added an output DOCTYPE and and xhtml namespace as follows:

<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xhtml="http://www.w3.org/1999/xhtml">
	<xsl:output doctype-public="-//W3C//DTD XHTML 1.0 Transitional//EN"
doctype-system="http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"
indent="yes" encoding="UTF-8" method="xml"/>

Then I used template match="xhtml:a" and it worked fine. Maybe one day it
will be clear to me why - up until now, I've been using basic xsl without a
namespace declaration for the input tree (as shown in all the text books)
and it never had a problem finding things. If you'd care to explain that
would be great, otherwise, I'll leave it until I have time to re-read the
book.

Thanks again,
Richard

On 24/01/2008, David Carlisle <> wrote:
>
>
> > That's highly likely but not guaranteed from the code shown, because 
> > it could be set using xpath-default-namespace.
>
> hint: read the subject line of this thread:-)

where...? oh yeah.... sorry

:)

So for the archives: "In XSLT 2.0 that's highly likely but not
guaranteed......"


--
Andrew Welch
http://andrewjwelch.com
Kernow: http://kernowforsaxon.sf.net/

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

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

Buy Stylus Studio Now

Cast Your Vote

We need your help – Vote for DataDirect XML Products!

  • Best SOA or XML site

Winners and finalists announced at SOA World Conference in November.

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-2007 All Rights Reserved.