|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] some namespacing problems
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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








