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

some namespacing problems

Subject: some namespacing problems
From: "bryan" <bry@xxxxxxxxxx>
Date: Mon, 10 Feb 2003 16:39:04 +0100
namespacing

I was having some problems earlier today in quite a complicated series
of transforms I've built up.
The problem as far as I can make out is that I have quite a number of
namespaces, about 8, and a default blank namespace.

My highest level importing stylesheet started acting up whenever I tried
to write a generic template it would override all other templates,
including templates of the stylesheet it was in that was more specific
than it, even if I set my priority to be something ridiculous like
-50000(I tried all sorts of negatives from the reasonable to the non)

Now what I wanted to do was to try to make a basic catch of namespaced
elements in a namespace that I didn't know. 

Finally what I did was something like the following:


<xsl:template
match="*[contains(name(),':'][not(self::mmx:*)][not(self::rdf:*)][not(se
lf::fnc:*)]"><!--and so on for all the namespaces I was matching-->
<div>
<p><xsl:apply-templates select="@*"/><xsl:apply-templates/></p>
</div>
</xsl:template>

this worked but I personally find it distasteful, anyone got better
ideas for such a template (that aren't just variations of the same
procedure).

Also I was using msxml, anyone know of any particular bugs that make
msxml erratic in such a situation?



 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.