|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] RE: XSLT: Spaces/Generating NMTOKENS/IDREFS attributes
> <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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








