This is the mail archive of the
xsl-list@mulberrytech.com
mailing list .
More <xsl:when> questions!
- To: xsl-list at mulberrytech dot com
- Subject: More <xsl:when> questions!
- From: "Medina, Edward" <emedina at btg dot com>
- Date: Thu, 6 Apr 2000 12:14:27 -0400
- Reply-To: xsl-list at mulberrytech dot com
I have re-written my xsl according to something that David Carlisle said
to me yesterday on this list, but now I can't get anything to display
below the document level.
Here is my xsl :
Omiited code
<xsl:template match="packet" >
<xsl:if test="../packet/para/title">
</xsl:if>
<xsl:if test="../packet/workflow">
</xsl:if>
<xsl:if test="../packet/history">
</xsl:if>
<xsl:choose>
<xsl:when test="contains(/para/text/@text.role,'normal')">(Where I
believe the problem is)
<SPAN style="
margin-left: 3pc;
margin-right: 3pc;
width:100%;
font-weight: normal;
font-size: small">
<SPAN style="
margin-left: 3pc;
margin-right: 3pc;
font-weight: bold;
font-size: medium">
(<xsl:value-of select="//para/@secur.classif"/>)
</SPAN>
<xsl:value-of select="para/text"/>
</SPAN>
</xsl:when>.....
</xsl:choose>
gobs of code ommited
</xsl:template>
This is my xml (The document element can have infinite number of packet
elements, which in
turn requires at least a para, but can have any number of elements in any
order
with the exception that it requires at para first and then anything else.
<document>
<packet>
<title>
</title>
<para> <title></title><text></text><xlink></xlink> </para>
<illust> <image></image> <illust>
<list> <listitem></listitem><listitem></listitem> </list>
<table>
<table-body>
<table-column></table-column>
<table-column></table-column>
<table-row>
<table-cell></table-cell>
<table-cell></table-cell>
</table-row>
</table-body>
</table>
<workflow></workflow>
<history></history>
</packet>
<packet></packet>....
<workflow></workflow>
<history></history>
</document>
Thanks in advance.
Eddy
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list