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

Re: Templates aplied to namespaces

Subject: Re: Templates aplied to namespaces
From: John Robert Gardner <jrgardn@xxxxxxxxx>
Date: Sun, 19 Dec 1999 17:15:48 -0500 (EST)
gardner studios templates
I'm quite sure I'm wading in over my head, so the following may not be
relevant.  If it's not, at least the reason for it not being relevant will
hopefully prove educational:

On Sun, 19 Dec 1999, Mark D. Anderson wrote:

> in this case, it'd be something like this:
> <xsl:stylesheet 
> 		version="1.0" 
> 		xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
>         xmlns:whatever="http://www.somewhere.com/mynamespace"
>         exclude-result-prefixes="whatever"
> >
> <xsl:template match="//whatever:title">
> 
> xsl has no way to separately specify a default input and output
> namespace, which is a bit of a pain. so if your result namespace
> is not also "whatever", you end up having to have explicit
> prefixes for all your select expressions, as shown above.

Am I misinterpreting the relevance of 

<xsl:namespace-alias> 

for translating teh stylesheet use of a given
namespace, in turn then to translate teh stylesheet use of a given
namespace--"whatever:"-- into another in the result tree node tree per the
distinction of 

stylesheet-prefix="http://www.somewhere.com/mynamespace"

for the stylesheet, and 

result-prefix="http://www.somewhere_else.com/theirnamespace"

for the result's URI, per instruction?

Anyway, hopefully this is not a straw-man reply, as it comes out of
ongoing gratitude for the many versions of help I've had here.

jr


> 
> if your result namespace *is* the same (and not html or
> something) then specifying xmlns="http://www.somewhere.com/mynamespace"
> in the xsl:stylesheet, and not using any prefixes should also 
> work.
> 
> but you have to do something -- xsl is very much namespace aware
> and that element that looks like "title" isn't really....
> 
> -mda
> 
> 
>  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

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.