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

Re: building namespaces

Subject: Re: building namespaces
From: "Andrew Welch" <andrew@xxxxxxxxxxxxxxxxxxxxxxx>
Date: Tue, 9 Apr 2002 12:37:55 +0100
bristol online andrew welch
I would just like to add one bit to Mike Brown's explanation of namespaces
that people new to xslt may not quite understand:

Namespaces are used provide uniqueness for elements, but some namespaces are
used to tell the xslt processor that the element is an instruction.  The
xslt namespace "http://www.w3.org/1999/XSL/Transform" normally gets
associated with the xsl prefix at the top of the stylesheet like this -

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"

The xslt processor then knows that it should do something with <xsl:element>
or <xsl:number>, whereas  I could also declare my own namespace and use my
own elements like <my:element> or <my:number>, but the processor would treat
them very differently.

I guess its easiest to say that the xslt processor is 'aware' of certain
namespaces and knows how to deal with elements in that namespace

has that helped or made it worse?


*<a href="http://www.thebristoldirectory.com">The Bristol Directory</a>*

> >
> > Hi!
> >
> > Few small questions about namespaces:
> > 1. What do they actually look like?
> > 2. It must be part of some document, so in what format?
> > 3. A small example would be great.
> >
> > Reason for these questions is simple:
> > I have to use xslt and xml in closed network with no connections
> > to for example w3c or any else.
> >
> >
> > *******************************************************************
> > Jarkko Moilanen         You are wise, witty, and wonderful,
> > Research/ ITCM          but you spend too much time
> > jarkko.moilanen@xxxxxx  reading this sort of trash.
> > www.uta.fi/~jm60697
> > GSM: +358 50 3766 927
> > *******************************************************************
> >
> >  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
> >
> >
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list

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.