Re: [xsl] XSL:problem printing the values in between two tags

Subject: Re: [xsl] XSL:problem printing the values in between two tags
From: "Mukul Gandhi" <gandhi.mukul@xxxxxxxxx>
Date: Mon, 11 Sep 2006 17:59:15 +0530
I think something like this will work for you:

<xsl:template match="p">
  <xsl:apply-templates />
</xsl:template>

<xsl:template match="lb">
  <xsl:text>&#xa;</xsl:text>
  <!-- or, write <br/> if your output is (X)HTML -->
</xsl:template>

On 9/11/06, Jaebin Lee <jaebin.charade@xxxxxxxxx> wrote:
Hi, thank you for the reply.

my question was that from the part:

 <p TEIform="p">
    Translation from italiano to castellano by Antonio Gabald=F3n;
       <lb TEIform="lb" />
   Subject: Teatro: tragedia;
       <lb TEIform="lb" />
   Type: Manuscrito MONOGRAFIA;
 </p>

with  <xsl:value-of select="." />,
I will get the output in one line such as:

"Translation from italiano to castellano by Antonio Gabald=F3n;
Subject: Teatro: tragedia;Type: Manuscrito MONOGRAFIA;"

Would there be a way to switch to new line whenever the <lb> tag comes?
basically to print this in three different lines.

Thank you.
-Jaebin


--
Regards,
Mukul Gandhi

http://gandhimukul.tripod.com

Current Thread