Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: [xsl] Testing for following text()

From: Sascha Mantscheff <922492@------>
To:
Date: 11/1/2007 4:55:00 PM
Thank you both for your time and suggestions. Yes, I stumbled in my test
across the white-space node and had to insert the strip-space
instruction for getting the desired results.
Ken's suggestion with normalize-space() is of course more elegant, being
independent of context and configuration.


Am Donnerstag, den 01.11.2007, 14:37 +0000 schrieb Andrew Welch:
> > Yes, I'm quite sure.  It was obvious by visually inspecting the
> > sample input XML ... there are so many text nodes there.  Did you run
> > your own suggestion as a test?
> 
> I did... but for some reason the -sall switch was set for Saxon, and
> my brain wasn't working, so I just trusted the output.
> 
> > I was only trying to help.  If I've misunderstood the original
> > poster's question, then I withdraw my suggestion and I apologize.
> 
> no I should apologize Ken, this is such a basic thing... for some
> reason at that point I thought whitespace text nodes wouldn't be
> matched by text() - it dawned on me soon after :-/
> 
> I've been learning the JPA these past few days, that's my excuse...


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent