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

Re: AW: Matching two consecutive <br><br>

Subject: Re: AW: Matching two consecutive <br><br>
From: David Carlisle <davidc@xxxxxxxxx>
Date: Mon, 23 Aug 2004 13:03:48 +0100
xslt consecutive
> Why would the
> the processor have to think up prefixes on the fly?

Well firstly it may always do that even if it doesn't have to, as the
namespace rec sort of half implied that a xml+namespace parser needn't
preserve the namespace prefixes, so XSLT does not assume that they are
preserved, it can work with an xml parser that just returns names as
uri+localname and more or less everything works almost nothing in xslt
assumes anything about the prefixes used in the source document.
The only constructs that access the prefixes are name() and the
namespace:: axis, and in both cases the system is explictly allowed to
use any consistent prefix it wants, it doesn't have to use the one in
the source.

that said, most systems do try to preserve prefixes as people get cross
(as seen on a thread on this list last week) if you start with <html
xmlns="http://www.w3.org/1999/xhtml> and the system produces names like
<_lakjsgawkebrc23o7qiu:html xmlns:_lakjsgawkebrc23o7qiu="http://www.w3.org/1999/xhtml">


  Wouldnt the association of
  namespace prefix to urn for any namespaces being used have to occur in
  the stylesheet 

namespace declarations in the stylesheet (most likely) have no effect on
the prefixes used by name() most systems try to preserve prefixes from
the source.

David

________________________________________________________________________
This e-mail has been scanned for all viruses by Star Internet. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:
http://www.star.net.uk
________________________________________________________________________

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.