Hello xsl-list,
I can't figure out how to drop the child bullets after
a para. Other than that code works fine
I'm using
<xsl:template match="para">
<p><xsl:value-of select="."/>
? how to drop child bullets here ?
e.g. using <xsl:apply-templates select="//bullet"/>
drops all bullets for all paras after each para.
</p>
</xsl:template>
<xsl:template match="bullet">
<ul>
<li><xsl:value-of select="."/></li>
</ul>
</xsl:template>
--oooOooo--
xml fragment
<stdLetter>
<para>paragraph one</para>
<para>paragraph two</para>
<bullet>p2 bullet one</bullet>
<bullet>p2 bullet two</bullet>
<para>paragraph three</para>
<bullet>p3 bullet 1</bullet>
<para>paragraph four</para>
...
</stdLetter>
--oooOooo--
Stylesheet in full as is, some bits in the artifacts library
<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<!-- stdInstruction.xsl created 2005-07-26T14:41 -->
<!-- Top level declarations -->
<xsl:import href="libArtifacts.xsl"/>
<xsl:output method="xml" indent="yes"/>
<xsl:param name="plainNameOne" select="''"/>
<xsl:param name="formalNameOne" select="''"/>
<xsl:param name="formalLastNameOne" select="''"/>
<xsl:param name="addressLabelOne" select="''"/>
<xsl:param name="plainNameTwo" select="''"/>
<xsl:param name="formalNameTwo" select="''"/>
<xsl:param name="formalLastNameTwo" select="''"/>
<xsl:param name="addressLabelTwo" select="''"/>
<xsl:param name="date" select ="'not dated'"/>
<xsl:param name="title" select ="''"/>
<xsl:template match="/">
<xsl:element name="html">
<xsl:element name="head">
<title><xsl:value-of select="$title"/></title>
</xsl:element>
<xsl:element name="style">
<xsl:text>@import url(../css/stdLetter.css);</xsl:text>
</xsl:element>
<body>
<xsl:call-template name="logoAddress"/>
<xsl:call-template name="addressee"/>
<xsl:apply-templates select="/stdLetter/title"/>
<xsl:apply-templates select="/stdLetter/para"/>
<xsl:apply-templates select="/stdLetter/signature"/>
</body>
</xsl:element>
</xsl:template>
<xsl:template name="addressee">
<p><xsl:value-of select="$formalNameOne"/></p>
<p><xsl:value-of select="$addressLabelOne"/></p>
<p><xsl:value-of select="$date"/></p>
<p><xsl:text>Dear </xsl:text><xsl:value-of
select="$formalLastNameOne"/></p>
</xsl:template>
<xsl:template match="title">
<h3><xsl:value-of select="."/></h3>
</xsl:template>
<xsl:template match="para">
<p><xsl:value-of select="."/></p>
</xsl:template>
<xsl:template match="signature">
<p><xsl:value-of select="."/></p>
</xsl:template>
<xsl:template match="bullet">
<ul>
<li><xsl:value-of select="."/></li>
</ul>
</xsl:template>
</xsl:stylesheet>
--
Best regards,
Arthur mailto:ArthurM(_at_)seipas(_dot_)com
--~------------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--