This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
Re: Re: Newbie question--applying templates, selecting paragraphs- S OLVED!!
- From: Joerg Heinicke <joerg dot heinicke at gmx dot de>
- To: xsl-list at lists dot mulberrytech dot com
- Date: Fri, 24 May 2002 20:31:43 +0200
- Subject: Re: [xsl] Re: Newbie question--applying templates, selecting paragraphs- S OLVED!!
- References: <113A7A0D1F47D511B92E00D0B7E03DAB0235B538@pmail02.vikingfreight.com>
- Reply-to: xsl-list at lists dot mulberrytech dot com
What about http://www.w3.org/TR/xslt#conflict ? Does it help?
Joerg
Grant-Kathryn@vikingfreight.com wrote:
> Joerg and J.Pietschmann,
>
> The file below, adjusted per your recommendations, worked!! :) Thank you so
> much.
>
> <?xml version="1.0" encoding="UTF-8"?>
> <xsl:stylesheet
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
> xmlns:xhtml="http://www.w3.org/1999/xhtml"
> version="1.0">
> <xsl:output method="xml" encoding="UTF-8"/>
> <xsl:template match="*|@*|text()|comment()">
> <xsl:copy>
> <xsl:apply-templates
> select="*|@*|text()|comment()"/>
> </xsl:copy>
> </xsl:template>
> <xsl:template match="xhtml:div[@class='mgronly']"/>
> </xsl:stylesheet>
>
> May I ask one more question that will hopefully help me understand more
> about XSL? I understand now why the xhtml namespace is necessary. But I
> don't understand why adding the second template worked. If the first one
> says "copy everything," the second one must somehow override or modify the
> first. But syntactically, I don't see how that is accomplished.
>
> Thanks again for your help. I have been trying to solve this problem for
> several weeks.
>
> Kathryn
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list