Subject: Re: [xsl] Delete element except one child From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Fri, 12 May 2006 10:57:18 +0200 |
How can I do the following: If "UML:Package" has "xmi.idref" attribute then delete its grand-Pa element bolck. Otherwise delete "UML:Package" element except the children of its child element "UML:Namespase.ownedElement" ... XSLT Code: <xsl:template match="*[name(descendant::*[2]) = 'UML:Package']"> <xsl:choose> <xsl:when test="string-length(descendant::UML:Package/@xmi.idref) > 0"/> </xsl:choose> </xsl:template>
-- Registration open for XSLT/XSL-FO training: Wash.,DC 2006-06-12/16 Also for XSLT/XSL-FO training: Minneapolis, MN 2006-07-31/08-04 Also for XML/XSLT/XSL-FO training:Birmingham,England 2006-05-22/25 World-wide on-site corporate, govt. & user group XML/XSL training. 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 (F:-0995) Male Cancer Awareness Aug'05 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] Delete element except one chi, Hind Al-Hakami | Thread | RE: [xsl] Namespace-alias using #de, Buchcik, Kasimier |
[xsl] Delete element except one chi, Hind Al-Hakami | Date | RE: [xsl] Incremental Numbering, Mark Williams |
Month |