 |
 |
 |
> A simple question is getting more and more complex! I still
> don't understand why the original stylesheet (..)[..] thru
> Saxon drops the newlines as I want, and the modified
> stylesheet (..) and (..) thru xsltproc/XMLSpy turns them into
> space characters as I don't want.
It's very unlikely that the original stylesheet does what you want in XSLT
2.0, even though it is legal.
You wrote
test="not(preceding-sibling::*)[starts-with($Arg,'
')]"
The first part
not(preceding-sibling::*)
is either true or false.
In XPath 2.0 you can filter any value or sequence with a predicate. So if
[starts-with($Arg,'
')]
is true, then the value of the test expression is the same as the value of
[starts-with($Arg,'
')], while if the predicate is false, the value of
the test expression is an empty sequence, which is treated as false.
I think it's rather unlikely this is what you intended. My immediate thought
was that the intended expression was
test="not(preceding-sibling::*[starts-with($Arg,'
')])"
but since the value of the predicate doesn't depend in any way on the
context node, that seems unlikely as well. So I'm afraid I can't help you
correct your code without knowing what it was intended to do.
Michael Kay
http://www.saxonica.com/
|
 | 

|  |
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.
|  |
| |
 |
 |
 |