|
Как убрать перенос строки.
|
|||
---|---|---|---|
#18+
При конвертации в текстовый файл в результирующем откуда-то берутся переносы строк, а как мне все склеить в одну большую строку ? <xsl:template match="/"> <xsl:text>{"results":"</xsl:text> <xsl:value-of select="count(/config/list_objects/object[id=$id_form]/list_file)"/> <xsl:text>",</xsl:text><xsl:text>"rows":[</xsl:text> <xsl:apply-templates select="/config/list_objects/object[id=$id_form]/list_file"/> <xsl:text>],"success"=>true}</xsl:text> </xsl:template> <xsl:template match="list_file"> <xsl:text>{</xsl:text><xsl:apply-templates/> <xsl:text>}</xsl:text> <xsl:if test="not (position()=last())"> <xsl:text>,</xsl:text></xsl:if> </xsl:template> все отлично, только применение каждого <xsl:apply-templates/> ведет к созданию новой строки, а мне надо все в одну строчку. ... |
|||
:
Нравится:
Не нравится:
|
|||
06.10.2008, 09:53 |
|
Как убрать перенос строки.
|
|||
---|---|---|---|
#18+
попробуй сделать тесткейс. ... |
|||
:
Нравится:
Не нравится:
|
|||
06.10.2008, 16:07 |
|
|
start [/forum/topic.php?fid=14&fpage=49&tid=1333771]: |
0ms |
get settings: |
8ms |
get forum list: |
11ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
27ms |
get topic data: |
11ms |
get forum data: |
2ms |
get page messages: |
40ms |
get tp. blocked users: |
1ms |
others: | 10ms |
total: | 116ms |
0 / 0 |