|
|
|
xml-(xslt)->xml
|
|||
|---|---|---|---|
|
#18+
День добрый, есть ли встроенное усечение строк, отличное от приведенного ниже? Код: plaintext 1. 2. 3. 4. 5. 6. 7. 8. 9. 10. ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 15.03.2006, 17:39 |
|
||
|
xml-(xslt)->xml
|
|||
|---|---|---|---|
|
#18+
КритикДень добрый, есть ли встроенное усечение строк, отличное от приведенного ниже?.... Код: plaintext 1. 2. Example The following example normalizes a block of text string with unnormalized white spaces (tabs, leading and trailing spaces, and multiple spaces between words. The text string is the value of an <text> element. XML File (normSpace.xml) <?xml version="1.0"?> <?xml-stylesheet type="text/xsl" href="normalizeSpace.xsl"?> <text> This is a test, with a lot of irregular spacing and waiting to be normalizaed. </text> XSLT File (normSpace.xsl) <?xml version='1.0'?> <xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> <xsl:output method="xml" omit-xml-declaration="yes"/> <xsl:template match="/text"> Unnormalized: "<xsl:value-of select='.'/>" Normalized: "<xsl:value-of select='normalize-space()'/>" </xsl:template> </xsl:stylesheet> This XSLT produces the following output: Unormalized: " This is a test, with a lot of irregular spacing and waiting to be normalizaed. " Normalized: "This is a test, with a lot of irregular spacing and waiting to be normalized." ... |
|||
|
:
Нравится:
Не нравится:
|
|||
| 16.03.2006, 10:38 |
|
||
|
|

start [/forum/topic.php?fid=14&fpage=76&tid=1334849]: |
0ms |
get settings: |
10ms |
get forum list: |
16ms |
check forum access: |
3ms |
check topic access: |
3ms |
track hit: |
42ms |
get topic data: |
8ms |
get forum data: |
2ms |
get page messages: |
32ms |
get tp. blocked users: |
1ms |
| others: | 242ms |
| total: | 359ms |

| 0 / 0 |
