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

RE: copy-of too powerful or wrong

Subject: RE: copy-of too powerful or wrong
From: "Marty McKeever" <marty.mckeever@xxxxxxxxxx>
Date: Mon, 9 Aug 2004 17:14:43 -0400
xsl template match copy of
setting a high priority attribute on the commenters, and a low priority on
the copy-of template, just might do the trick.

> -----Original Message-----
> From: SnHndrc@xxxxxxx [mailto:SnHndrc@xxxxxxx]
> Sent: Monday, August 09, 2004 4:54 PM
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject:  copy-of too powerful or wrong
>
>
> I'd like to be able to do something like this
>
> <xsl:template match="/">
> <xsl:copy-of select="@*|node()"/>
> </xsl:template>
>
> <!--SUMMARY - this comments out the Summary chunk-->
> <xsl:template match="/chunk/chunk[chunk-meta/title[(text()='Summary')]]"/>
> <!--INSIGHTS commented out-->
> <xsl:template
> match="/chunk/chunk[chunk-meta/title[(text()='Insights')]]"/>
> <!--KEYTERMS commented out-->
> <xsl:template match="/chunk/chunk[@differentiation='keyterms']"/>
> <!--REVIEW QUESTIONS commented out-->
> <xsl:template
> match="/chunk/chunk[@differentiation='review-questions']"/>
> <!--INSIGHTS commented out-->
> <xsl:template
> match="/chunk/ref-note-list[title/text()='Additional Readings']"/>
>
>
> Where the first template match copies everything and the
> additional template matches comment out those specific chunks. It
> doesn't work - as you could guess. But I do not know why - I am a
> beginner and copy-of is very powerful - too powerful. I am
> looking to rebuild the xml (transformed) using copy-of - is that
> the wrong thing to do?
>
> Thanks ahead of time,
> S
>
>
>
> !DSPAM:4117e66f287157660920430!

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.