|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] More <xsl: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
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








