xsl-list
[Top] [All Lists]

RE: copy-of too powerful or wrong

2004-08-09 14:14:43
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(_at_)aol(_dot_)com [mailto:SnHndrc(_at_)aol(_dot_)com]
Sent: Monday, August 09, 2004 4:54 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: [xsl] 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[(_at_)differentiation='keyterms']"/>
<!--REVIEW QUESTIONS commented out-->
<xsl:template
match="/chunk/chunk[(_at_)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


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: 
<mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--



!DSPAM:4117e66f287157660920430!






<Prev in Thread] Current Thread [Next in Thread>