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

Re: xalan-java xslt node value

Subject: Re: xalan-java xslt node value
From: "Jason S" <jasonsmith@xxxxxxxxxxx>
Date: Mon, 16 Sep 2002 14:37:28 -0500
xslt node
Thanks very much for the explanation and reference.

Jason

----- Original Message -----
From: "Trevor Nash" <tcn@xxxxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Monday, September 16, 2002 11:33 AM
Subject: Re:  xalan-java xslt node value


> Read up on 'built-in templates'.
> There is a default behaviour in XSLT that essentially says 'unless you
> tell me differently, I will do the following:
>   for an element or root node, I will process each child
>  for a text node, I will copy the text to the output.'
> (Its actually slightly more complicated than that, but thats the
> important bit).
>
> So,
> ><xsl:template match="/">
> > <xsl:apply-templates/>
> ></xsl:template>
> is not necessary, the XSLT processor will do that by default
>
> >How can I prevent the sports-title value from being included in my
output?
> You also need
> <xsl:template match="sports-title" />
> (note the '/' which makes this an empty template)
> to tell the processor explicitly not to do anything with the
> sports-title elements.
>
> Another method is to match one of the higher level elements and do an
> apply-templates to process only the elements you actually want, rather
> than leave the processor to look at all of them.
>
> Trevor Nash
> --
> Traditional training & distance learning,
> Consultancy by email
>
> Melvaig Software Engineering Limited
> voice:     +44 (0) 1445 771 271
> email:     tcn@xxxxxxxxxxxxx
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>
>



 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.