This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

conversion problem


Dear all!,

I have the following expression:

<item>Item with bullet list
  <bulletlist>
   <item>Item 1.1</item>
   <item>Item 1.2</item>
   <item>Item 1.3</item>
  </bulletlist>
</item>

I would like to translate it into:

<p>Item with bullet list</p>
<p>Item 1.1</p>
<p>Item 1.2</p>
<p>Item 1.3</p>

my solution isnt working:

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

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

as I get as a result:

<p>Item with bullet list
  <p>Item 1.1</p>
  <p>Item 1.2</p>
  <p>Item 1.3</p>
</p>

What is the proper solution for my problem?
Thanks for your help in advance,

  Andreas


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]