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

RE: Novice Question - matching entire text children

Subject: RE: Novice Question - matching entire text children
From: "David Lee" <dlee@xxxxxxxxxxx>
Date: Mon, 20 Dec 2010 15:56:08 -0500
RE:  Novice Question - matching entire text children
----> Wendell
As to the question at hand, I'm still not sure we know why your template 
matching "ELEM/text()" was matching more than once inside a given ELEM, 
whether because of something about your tree, or the presence of a 
comment or PI or other interference.

But I'm not sure you care any more: maybe your actual question has been 
asked and answered.

Cheers,
Wendell

------------

Some of both.   The generated XSLT is quite complicated (or atleast obtuse)
and my debugger wasn't giving me much help where the "\n   \n" was coming
from.
So I tossed in a 
	   <xsl:strip-space elements="*"/>

And made some other changes which I've forgotten and now its not happening
anymore ...
So I guess I'm beyond it now :)

But the bit about PI's and comments breaking the text means I will still
need to revisit this.
Thinking possible of putting the XML through a pre-process to remove all
comments and PI's before running the XSLT ... 
Or maybe have to result to a PUSH mode and make the code generation trickier
...
Atleast now I think I know what the expected behaviour is.
Thanks everyone !




----------------------------------------
David A. Lee
dlee@xxxxxxxxxxx
http://www.xmlsh.org

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.