Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: ok, must be doing something stupid but HELP (XSL problem)

From: Gina_Marano <ginalster@-----.--->
To: NULL
Date: 3/12/2009 10:23:00 AM
Thanks so much for helping Martin!

That worked was the orderDate but what is so different for OrderID?

<?xml version="1.0"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/
Transform" xmlns:fn="http://www.w3.org/2005/02/xpath-functions"
xmlns:jdf="http://www.CIP4.org/JDFSchema_1_1" xmlns:pt="http://
www.printtalk.org/schema"
     exclude-result-prefixes="pt">
	<xsl:output method="xml" version="1.0" encoding="UTF-8" indent="yes"/
>
	<xsl:template match="/">
		<Order orderDate="{pt:PrintTalk/@timeStamp}" OrderID="{pt:PrintTalk/
Request/PurchaseOrder/@BusinessID}">
			<!--xsl:attribute name="orderDate"><xsl:value-of
select="pt:PrintTalk/@timeStamp"/></xsl:attribute-->
			<!--xsl:attribute name="OrderID"><xsl:value-of select="pt:PrintTalk/
Request/PurchaseOrder/@BusinessID"/></xsl:attribute-->
			<xsl:attribute name="CustomerID"><xsl:value-of select="pt:PrintTalk/
Header/From/Credential/Identity"/></xsl:attribute>
			<xsl:element name="Address">
				<xsl:attribute name="AddressID">1</xsl:attribute>
				<firstname>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Person/@FirstName"/>
				</firstname>
				<lastname>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Person/@FamilyName"/>
				</lastname>
				<address1>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Address/@Street"/>
				</address1>
				<address2>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Address/@ExtendedAddress"/>
				</address2>
				<address3>	</address3>
				<city>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Address/@City"/>
				</city>
				<state>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Address/@Region"/>
				</state>
				<postalcode>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Address/@PostalCode"/>
				</postalcode>
				<xsl:choose>
					<xsl:when test="string-length(pt:PrintTalk/Request/PurchaseOrder/
jdf:JDF/ResourcePool/Contact/Address/@CountryCode)>0">
						<country>
							<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/
jdf:JDF/ResourcePool/Contact/Address/@CountryCode"/>
						</country>
					</xsl:when>
					<xsl:otherwise>
						<country>US</country>
					</xsl:otherwise>
				</xsl:choose>
				<phone>
					<xsl:value-of select="pt:PrintTalk/Request/PurchaseOrder/jdf:JDF/
ResourcePool/Contact/Person/ComChannel/@Locator"/>
				</phone>
				<email/>
			</xsl:element>
		</Order>
	</xsl:template>
</xsl:stylesheet>

I really need to read a book on this stuff instead of just trying to
learn by example but sprints leave less time for self improvement.

~Gina_M~


transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent