- markup (52)
- xml (7)
- xslt (21)
- atom (8)
- overlapping markup (2)
- schema (9)
- creole (4)
- xforms (1)
- pipelines (7)
- coding (2)
- dtll (1)
- genealogy (3)
- gtd (1)
- hardware (1)
- legislation (1)
- ontologies (2)
- unicode (1)
- web (24)
- google (3)
- rdf (6)
- rest (3)
- wikis (1)
- work (1)
- xpath (1)
- xquery (1)
- xtech2008 (3)
- life (26)
- children (5)
- equality (6)
- environment (4)
- gadgets (5)
- software (3)
- xlinq (2)
- conferences (7)
- xtech (6)
- blog (7)
- drupal (3)
Re: Whitespace in markup languages
I use XSLT all the time, and it has particular ways of dealing with whitespace. I happen to think that the way XSLT deals with whitespace is pretty solid,
Note though that XSLT2 and XSLT1 have very different whitespace handling. XSLT1 always passes it along (or at least it passes along whatever the underlying XML parser hasn’t discarded) so it’s under stylesheet control whether to strip or not using xsl:strip-space, XSLT2 (or rather XDM) changes this behaviour so that by default whitespace in (DTD or Schema) specified element content is stripped, this happens before XSLT starts (conceptually) so can’t be controlled by xsl:preserve|strip-space.
David