Subject: Re: [xsl] tag with one blank body From: "G. Ken Holman" <gkholman@xxxxxxxxxxxxxxxxxxxx> Date: Tue, 05 Jan 2010 07:41:55 -0500 |
I've a very stupid problem, but I've tried two ways without finding a solution.
I've the need to generate in the output xml this tag with exactly one space inside the body:
<QCat> </QCat>
I've tried this in the xstl:
<QCat><!-- DataType: Alphanumeric Length: 2 Left justified. Blank fill if not used --><xsl:value-of select=' '/></QCat>
and this
<QCat><!-- DataType: Alphanumeric Length: 2 Left justified. Blank fill if not used --><xsl:text> </xsl:text></QCat>
but both give
<QCat></QCat>
Any hints?
T:\ftemp>xslt bartholomeo.xsl bartholomeo.xsl con <?xml version="1.0" encoding="utf-8"?><result><QCat> </QCat>
<QCat> </QCat></result> T:\ftemp>type bartholomeo.xsl <?xml version="1.0" encoding="US-ASCII"?> <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="2.0">
<xsl:template match="/"> <result> <QCat><!-- DataType: Alphanumeric Length: 2 Left justified. Blank fill if not used --><xsl:value-of select="' '"/></QCat>
<QCat><!-- DataType: Alphanumeric Length: 2 Left justified. Blank fill if not used --><xsl:text> </xsl:text></QCat> </result> </xsl:template> </xsl:stylesheet> T:\ftemp>
-- UBL and Code List training: Copenhagen, Denmark 2010-02-08/10 XSLT/XQuery/XPath training after http://XMLPrague.cz 2010-03-15/19 XSLT/XQuery/XPath training: San Carlos, California 2010-04-26/30 Vote for your XML training: http://www.CraneSoftwrights.com/s/i/ Crane Softwrights Ltd. http://www.CraneSoftwrights.com/s/ Training tools: Comprehensive interactive XSLT/XPath 1.0/2.0 video Video lesson: http://www.youtube.com/watch?v=PrNjJCh7Ppg&fmt=18 Video overview: http://www.youtube.com/watch?v=VTiodiij6gE&fmt=18 G. Ken Holman mailto:gkholman@xxxxxxxxxxxxxxxxxxxx Male Cancer Awareness Nov'07 http://www.CraneSoftwrights.com/s/bc Legal business disclaimers: http://www.CraneSoftwrights.com/legal
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
RE: [xsl] tag with one blank body, Mario Madunic | Thread | Re: [xsl] tag with one blank body, Bartolomeo Nicolotti |
RE: [xsl] tag with one blank body, Mario Madunic | Date | Re: [xsl] Associating javascript wi, Martin Honnen |
Month |