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

RE: Displaying Text Nodes

Subject: RE: Displaying Text Nodes
From: "Michael Kay" <mike@xxxxxxxxxxxx>
Date: Wed, 4 Mar 2009 20:52:39 -0000
RE:  Displaying Text Nodes
Actually, I think you want

<xsl:apply-templates select="node()[not(preceding-sibling::br)] "/>

That will then apply-templates to the text nodes and also to the
<superscript> element; the template rule for the superscript element will
presumably take care of displaying the text within this element.

Michael Kay
http://www.saxonica.com/

> -----Original Message-----
> From: siarom egrub [mailto:egrubs@xxxxxxxxx]
> Sent: 04 March 2009 20:40
> To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> Subject: Re:  Displaying Text Nodes
>
>
> Thank you very much for your help and response. For some
> reason the text/character within <superscript> doesn't display.
>
> Current output: Access Ultrasensitive ESTRADIOL QC
>
> Required Output: Access. Ultrasensitive ESTRADIOL QC
>
> Thanks again,
> S. Egrub
>
> --- On Wed, 3/4/09, Christopher R. Maden <crism@xxxxxxxxx> wrote:
>
> > From: Christopher R. Maden <crism@xxxxxxxxx>
> > Subject: Re:  Displaying Text Nodes
> > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx
> > Date: Wednesday, March 4, 2009, 3:10 PM I wrote:
> > > Use <xsl:apply-templates/> instead.
> >
> > I realized as soon as I hit Send that this is ambiguous.  I
> meant to
> > use the apply-templates instruction with the same select
> > pattern:
> >
> > <xsl:apply-templates
> > select="text()[not(preceding-sibling::br)] "/>
> >
> > ~Chris

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.