Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] xmlns (flawed XML?) (edited)

From: Wendell Piez <wapiez@---------------->
To:
Date: 6/2/2004 9:16:00 AM
Hi Mike,



At 01:03 PM 6/2/2004, you wrote:
I added the s: and the correct namespace to the stylesheet.
  xmlns:s="http://www.loc.gov/MARC21/slim"

<xsl:apply-templates select="//s:leader" mode="get_records"/>



Everything ran fine.



I thought the namespace was 'marc:'.

No, "marc" may be the prefix assigned the namespace in some document; but 
namespace prefixes can be switched, as long as they resolve to the same URI.



This is a feature: the whole idea of namespaces is to allow us to avoid 
name collisions. If "marc" were wired to a tagset for MARC (the cataloging 
rules) what would MARC the Maryland commuter rail system do?



Cheers,
Wendell


======================================================================
Wendell Piez                            mailto:wapiez@xxxxxxxxxxxxxxxx
Mulberry Technologies, Inc.                http://www.mulberrytech.com
17 West Jefferson Street                    Direct Phone: 301/315-9635
Suite 207                                          Phone: 301/315-9631
Rockville, MD  20850                                 Fax: 301/315-8285
----------------------------------------------------------------------
  Mulberry Technologies: A Consultancy Specializing in SGML and XML
======================================================================


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent