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

Re: Re: Re: Re: Re: lookup-table thoughts (was Re: mat

Subject: Re: Re: Re: Re: Re: lookup-table thoughts (was Re: matching multiple times, outputting once?
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 7 Nov 2001 12:42:31 -0800 (PST)
 Re: Re: Re: Re: Re: lookup-table thoughts (was Re: mat
Hi David,

> > Unfortunately, a namespace for a template reference has to be ***globally***
defined
> > as has to be any template. Therefore name clashes are possible.
> 
> but isn't that the point of namespaces, that you can give yourself
> globally unique names? eg you use mailto:dnovatchev@xxxxxxxxx?x and no
> one else should use that name, or maybe I missed the point you were
> trying to make?

You had to miss my point as I was wrong -- out of mere ignorance I was thinking that
same namespace prefixes from different imported stylesheets can clash with each
other. Now I re-read Mike's book and saw that it is explicitly not so.

Therefore Jeni is right that I can use prefix:* in the match attribute of the
referenced template.

> 
> Also beware of namespace-uri()='pGenerator'] pGenerator is a relative
> URI so according to the W3C's somewhat strange ruling on relative
> namespace uri's you are on your own, and a system _might_ make the URI
> absolute (resolving against the uri of the stylesheet, presumably)
> in which case the string compare wouldn't work.

Thanks for the warning. Typically referenced templates reside in the same stylesheet
in which the reference to them is defined.

However, to be on the safe side I will use "x:pGenerator" instead of just
"pGenerator" (I hope my understanding of what is an absolute URI is correct).

Thank you very much for your remarks.

Cheers,
Dimitre Novatchev.



__________________________________________________
Do You Yahoo!?
Find a job, post your resume.
http://careers.yahoo.com

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


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.