[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

More <xsl:when> questions!

Subject: More <xsl:when> questions!
From: "Medina, Edward" <emedina@xxxxxxx>
Date: Thu, 6 Apr 2000 12:14:27 -0400
when questions
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


Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.