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

Re: XPath query syntax

Subject: Re: XPath query syntax
From: "Jay Bryant" <jay@xxxxxxxxxxxx>
Date: Wed, 18 May 2005 22:46:35 -0500
xpath textarea
Just to show an alternative:

select="/textarea/node()[not(br)]"

Jay Bryant
Bryant Communication Services

----- Original Message ----- 
From: "Aron Bock" <aronbock@xxxxxxxxxxx>
To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Wednesday, May 18, 2005 6:24 PM
Subject: RE:  XPath query syntax


> Jon, some variant of this should work.  You may also want to use 
> normalize-space().
> 
> <?xml version="1.0" encoding="iso8859-1"?>
> <xsl:stylesheet version="1.0" 
> xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
>     <xsl:output method="xml"/>
> 
>     <xsl:template match="/">
>         <xsl:for-each select="/textarea/node()[name() != 'br']">
>             <line><xsl:copy-of select="."/></line>
>         </xsl:for-each>
> </xsl:template>
> 
> </xsl:stylesheet>
> 
> 
> >From: jpk <jopaki@xxxxxxxxx>
> >I have source XML:
> >
> ><textarea>
> >   line 1<br/>
> >   line 2<br/>
> >   line 3<br/>
> >   line 4<br/>
> ></textarea>
> >
> >How do I query for each of the line texts?  That is, I
> >need to get each text [node] that preceeds all <br>
> >tags.
> 
> _________________________________________________________________
> Don't just search. Find. Check out the new MSN Search! 
> http://search.msn.click-url.com/go/onm00200636ave/direct/01/

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.