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

Re: problem displaying (value-of select=) header value

Subject: Re: problem displaying (value-of select=) header values whenusing Tr ansformXML function
From: Joerg Heinicke <joerg.heinicke@xxxxxx>
Date: Mon, 23 Sep 2002 22:55:04 +0200
header value
Hello Paul,

first you should use XSLT, not the MS implementation of a working draft:

<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

More information at http://www.netcrucible.com.

Regards,

Joerg

Candy, Paul (Forest IS) wrote:
I'm using the following function to covert a recordset to XML:
<% = TransformXML( RecordsetToXMLDoc(GetRecordset(),"lotplan"),
"xsl/lotplan.xsl" ) %>

The output it not displaying the values (voyage, version, datetime)? How do I display header info once with multiple detail lines.?
I believe the issue is the syntax of the .xsl file I'm using. Here it is:


<?xml version="1.0"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/TR/WD-xsl">

<xsl:template match="/">

<lotplan>
<hdr>
<voyage><xsl:value-of select="voyage_identifier" /></voyage>
<version><xsl:value-of select="version" /></version> <datetime><xsl:value-of select="publish_date_time" /></datetime>
</hdr>
<dtls>
<xsl:apply-templates select="//lotplan"/>
</dtls>
</lotplan>


</xsl:template>

<xsl:template match="lotplan">

		<dtl>
		<loadport><xsl:value-of select="load_port" /></loadport>
            <species><xsl:value-of select="species" /></species>
            <grade><xsl:value-of select="grade" /></grade>
            <jade_grade><xsl:value-of select="jade_grade" /></jade_grade>
            <length><xsl:value-of select="length" /></length>
            <volume><xsl:value-of select="load_volume" /></volume>
            <minvolume><xsl:value-of select="minimum_volume" /></minvolume>
            <maxvolume><xsl:value-of select="maximum_volume" /></maxvolume>
            <lotno><xsl:value-of select="lotting_number" /></lotno>
            <consigneename><xsl:value-of select="consignee_name"
/></consigneename>
            <dischargeport><xsl:value-of select="discharge_port"
/></dischargeport>
            <comments><xsl:value-of select="comments" /></comments>
		</dtl>

    </xsl:template>
</xsl:stylesheet>

any suggestions??

Thanx Paul

DISCLAIMER: This electronic message together with any attachments is confidential. If you are not the intended recipient, do not copy, disclose or use the contents in any way. Please also advise us by return e-mail that you have received the message and then please destroy. Carter Holt Harvey is not responsible for any changes made to this message and / or any attachments after sending by Carter Holt Harvey. We use virus scanning software but exclude all liability for viruses or anything similar in this email or any attachment.

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




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.