Subject: RE: XSLT: Spaces/Generating NMTOKENS/IDREFS attributes From: Mike Brown <mbrown@xxxxxxxxxxxxx> Date: Sat, 4 Mar 2000 16:48:52 -0700 |
> <xsl:attribute name="memberships"> > <xsl:for-each > select="//org[member/@ref=current()/@id]"> > <xsl:value-of select="current()/@id"/> > <!-- here I want to insert a simple space :( --> > </xsl:for-each> > [...] Replace the comment with this: <xsl:if test="not(position()=last())"> <xsl:text> </xsl:text> </xsl:if> > BTW, is there any description how to output white space > in the resulting XML document, e.g., linebreaks Aside from the literal space in the xsl:text above, you could simply put these or their decimal equivalents in your result tree: 	 = tab character 
 = newline character   = non-breaking space character XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
XSLT: Spaces/Generating NMTOKENS/ID, Wolfgang May | Thread | How to parse an element with conten, Kai Ritterbusch |
RE: XSLT vs Omnimark, Didier PH Martin | Date | RE: XSLT: Restructuring/Grouping, Mike Brown |
Month |