Overview : 라인피드(엔터)가 있는 문장을 <br/>로 적용하기
Example
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
<air:Text Type="MarketingConsumer" LanguageCode="EN">Affordable luxury features highest-quality service from departure to arrival. Great design, more personal space, this 18-inch wide seat with 121-degree reclining back support has 34 inches of space between you and the next row of seats, and provides personal comfort unlike any other economy-class seat. An 8.4-inch high-resolution LCD wide screen with state-of-the-art audio and video on demand (AVOD) makes channel selection easy and your flight more enjoyable. - Include carry on bag 12KG - Include checked baggage 23KG - Include inflight meal - Include seat selection - Rebooking and Refunds permitted with a fee - Include inflight entertainment Note: Type and size of seat and its available features may vary depending on the flight route, time and aircraft. • Please note that if the flight is operated by another airline then the onboard product or service maybe different to that described above.</air:Text> |
. 점의 문제점
1 2 3 4 5 6 |
<xsl:template match="*[local-name()='AirPricingInfo'][1]/*[local-name()='FareInfo'][1]/*[local-name()='Brand'][1]/*[local-name()='Text'][1]"> <!--xsl:call-template name="break" /--> <xsl:value-of select="."/> </xsl:template> |
한줄로 나옴
1 2 3 |
Affordable luxury features highest-quality service from departure to arrival. Great design, more personal space, this 18-inch wide seat with 121-degree reclining back support has 34 inches of space between you and the next row of seats, and provides personal comfort unlike any other economy-class seat. An 8.4-inch high-resolution LCD wide screen with state-of-the-art audio and video on demand (AVOD) makes channel selection easy and your flight more enjoyable. - Include carry on bag 12KG - Include checked baggage 23KG - Include inflight meal - Include seat selection - Rebooking and Refunds permitted with a fee - Include inflight entertainment Note: Type and size of seat and its available features may vary depending on the flight route, time and aircraft. • Please note that if the flight is operated by another airline then the onboard product or service maybe different to that described above. |
해결
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
<xsl:template match="*[local-name()='AirPricingInfo'][1]/*[local-name()='FareInfo'][1]/*[local-name()='Brand'][1]/*[local-name()='Text'][1]"> <xsl:call-template name="break" /> </xsl:template> <xsl:template name="break"> <xsl:param name="text" select="string(.)"/> <xsl:choose> <xsl:when test="contains($text, '
')"> <xsl:value-of select="substring-before($text, '
')"/> <br/> <xsl:call-template name="break"> <xsl:with-param name="text" select="substring-after($text, '
')" /> </xsl:call-template> </xsl:when> <xsl:otherwise> <xsl:value-of select="$text"/> </xsl:otherwise> </xsl:choose> </xsl:template> |
<br/>처리됨
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
Affordable luxury features highest-quality service from departure to arrival. Great design, more personal space, this 18-inch wide seat with 121-degree reclining back support has 34 inches of space between you and the next row of seats, and provides personal comfort unlike any other economy-class seat. An 8.4-inch high-resolution LCD wide screen with state-of-the-art audio and video on demand (AVOD) makes channel selection easy and your flight more enjoyable. - Include carry on bag 12KG - Include checked baggage 23KG - Include inflight meal - Include seat selection - Rebooking and Refunds permitted with a fee - Include inflight entertainment Note: Type and size of seat and its available features may vary depending on the flight route, time and aircraft. • Please note that if the flight is operated by another airline then the onboard product or service maybe different to that described above. |