xsl-list
[Top] [All Lists]

RE: [xsl] Suppressing element content

2008-09-10 18:07:55
http://www.w3.org/TR/xslt#built-in-rule

~ Scott


-----Original Message-----
From: Kirk Lowery [mailto:empirical(_dot_)humanist(_at_)gmail(_dot_)com] 
Sent: Wednesday, September 10, 2008 4:56 PM
To: xsl-list(_at_)lists(_dot_)mulberrytech(_dot_)com
Subject: Re: [xsl] Suppressing element content

On Wed, Sep 10, 2008 at 5:50 PM, Scott Trenda 
<Scott(_dot_)Trenda(_at_)oati(_dot_)net>
wrote:
You need to override the built-in templates. And your initial template
is the same as the built-in template, so you don't need it.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
version="1.0">
       <xsl:output method="text" />
       <xsl:template match="Node[(_at_)Cat='x']">
               <xsl:value-of select="@Lemma" />
       </xsl:template>
       <xsl:template match="@*|text()" />
</xsl:stylesheet>

That did the trick! Thanks!

Could you point me to something that explains this? There are one or
two more built-in templates, IIRC, and I'd like to get a handle on how
it works.

Kirk

--~------------------------------------------------------------------
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>
--~--


--~------------------------------------------------------------------
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>
--~--

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