Subject: Re: [xsl] I mean self::* doesn't select attributes :( From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 24 Apr 2001 16:56:27 -0400 |
<correction> Anyone else have headaches with not being able to do @*[not(self::xyz:* or self::abc:*)] ?
Anything more elegant than the following two solutions?
@*[not(namespace-uri()='&xyzURI;' or namespace-uri()='&barURI;')]
@*[not(generate-id()=generate-id(../@xyz:*) or generate-id()=generate-id(../@abc:*))]
I'd love to be missing something. </correction>
Practical Transformation Using XSLT and XPath (XSL Transformations and the XML Path Language) Ninth Edition - 2001-01-19 - ISBN 1-894049-06-3 Copyright (c) 2001 Crane Softwrights Ltd. / 375 Pages / Subscription price includes free updates / / and separate copy of all example files. / / Free 137-page download preview excerpt.
<--specific namespaced-unqualified attribute--> <xsl:when test="count(.|../@version)=count(../@version)"> <xsl:text>version attribute </xsl:text> </xsl:when> <!--specific namespace-qualified attribute--> <xsl:when test="count(.|../@book:ref)=count(../@book:ref)"> <xsl:text>book:ref attribute </xsl:text> </xsl:when> <!--any attribute--> <xsl:when test="count(.|../@*)=count(../@*)"> <xsl:text>attribute </xsl:text> </xsl:when>
-- G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Box 266, Kars, Ontario CANADA K0A-2E0 +1(613)489-0999 (Fax:-0995) Web site: XSL/XML/DSSSL/SGML/OmniMark services, training, products. Book: Practical Transformation Using XSLT and XPath ISBN 1-894049-06-3 Article: What is XSLT? http://www.xml.com/pub/2000/08/holman/index.html Next public instructor-led training: 2001-05-01,05-14,05-15,05-16, - 05-17,05-21,05-22,06-18,06-21,07-20,07-21,09-19
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] I mean self::* doesn't select, Evan Lenz | Thread | RE: [xsl] I mean self::* doesn't se, Evan Lenz |
[xsl] I mean self::* doesn't select, Evan Lenz | Date | Re: [xsl] Transitive closure for XP, Christian Nentwich |
Month |