Hi Michael and Martin
Quote:
|
quote:Originally posted by mhkayApply-templates by default selects all the children including elements and whitespace text nodes. Do select="*" or select="row" to avoid selecting them, or xsl:strip-space to remove them at source.
|
I read sometime back that pure xpath aware processor will give me those spaces. Usually the xml output is the same all through out for the templates that I create until now that I have to sort my output and struggle at work and have to use a different editor at home.
Quote:
quote:Originally posted by Martin Honnen
Unwanted white space is usually the result of some white space copied from the input to the output and/or of using xsl:output indent="yes".
With the template I suggested I don't think any white space from the input is copied to the output so I suspect you have an xsl:output indent="yes" in your stylesheet.
Which XSLT processor are you using within your editor?
When I run the complete stylesheet
|
Yes, using my editor at home I regularly add indent="yes" to check the output in tabbed structure (it is easier for me to scan the result). And my IDE at work does give me a way to quickly view the output by toggling on a switch without having to change and run the xslt to see the differences in the output.
Sorting allowed me to know what's really going on and thanks to both of you for the technical bit to watch out for when switching between editors or IDE.
My trialware editor at home is using Saxon 9.0.0.6
And now, please, can you guys enjoy your weekend already? You've been helping the community like 24x7...
Many thanks again for the usual support guys and more power!