...
Code Block | ||
---|---|---|
| ||
<?xml version="1.0" encoding="UTFutf-16"?> <xsl:stylesheet xmlns:LinkProxyfunc="http://link/xslt" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl s0 LinkProxyfunc" version="1.0" xmlns:s0="http://XsltProxyTestXsltFunctionsTest.Input" xmlns:ns0="http://XsltProxyTestXsltFunctionsTest.Output"> <xsl:output omit-xml-declaration="yes" method="xml" version="1.0"/> <xsl:template match="/"> <xsl:apply-templates select="/s0:Root"/> </xsl:template> <xsl:template match="/s0:Root"> <ns0:Root> <Document> <DocumentType> <xsl:value-of select="LinkProxyfunc:GetDocumentTypeName()"/> </DocumentType> <MessageNumberIn> <xsl:value-of select="LinkProxyfunc:GetDocumentMessageNumberIn()"/> </MessageNumberIn> <MessageNumberOut> <xsl:value-of select="LinkProxyfunc:GetDocumentMessageNumberOut()"/> </MessageNumberOut> <DocumentNumber> <xsl:value-of select="LinkProxyfunc:GetDocumentNumber()"/> </DocumentNumber> </Document> <DocumentConfigIn> <Format> <xsl:value-of select="LinkProxyfunc:GetDocumentFormatIn()"/> </Format> <Variant> <xsl:value-of select="LinkProxyfunc:GetDocumentVariantIn()"/> </Variant> <Version> <xsl:value-of select="LinkProxyfunc:GetDocumentVariantVersionIn()"/> </Version> </DocumentConfigIn> <DocumentConfigOut> <Format> <xsl:value-of select="LinkProxyfunc:GetDocumentFormatOut()"/> </Format> <Variant> <xsl:value-of select="LinkProxyfunc:GetDocumentVariantOut()"/> </Variant> <Version> <xsl:value-of select="LinkProxyfunc:GetDocumentVariantVersionOut()"/> </Version> </DocumentConfigOut> <Distribution> <ConfigurationKeys> <UNBOverride> <xsl:value-of select="LinkProxyfunc:LookupDistributionConfigurationKey('UNBOverride')"/> </UNBOverride> </ConfigurationKeys> </Distribution> <InterchangeIn> <InterchangeNumber> <xsl:value-of select="LinkProxyfunc:GetInterchangeInNumber()"/> </InterchangeNumber> <InterchangeGuid> <xsl:value-of select="LinkProxyfunc:GetInterchangeInInterchangeGuid()"/> </InterchangeGuid> <TransmissionId> <xsl:value-of select="LinkProxyfunc:GetInterchangeInTransmissionId()"/> </TransmissionId> <DisplayAddress> <xsl:value-of select="LinkProxyfunc:GetInterchangeInDisplayAddress()"/> </DisplayAddress> <PortName> <xsl:value-of select="LinkProxyfunc:GetInterchangeInPortName()"/> </PortName> <FormatType> <xsl:value-of select="LinkProxyfunc:GetInterchangeInFormatType()"/> </FormatType> </InterchangeIn> <PartnerIn> <Name> <xsl:value-of select="LinkProxyfunc:GetPartnerInName()"/> </Name> <PartnerKey> <xsl:value-of select="LinkProxyfunc:GetPartnerInPartnerKey()"/> </PartnerKey> <Comment> <xsl:value-of select="LinkProxyfunc:GetPartnerInComment()"/> </Comment> <IsInternal> <xsl:value-of select="LinkProxyfunc:GetPartnerInIsInternal()"/> </IsInternal> <IsDeleted> <xsl:value-of select="LinkProxyfunc:GetPartnerInIsDeleted()"/> </IsDeleted> <MainId> <xsl:value-of select="LinkProxyfunc:GetPartnerInMainId()"/> </MainId> <GLN> <xsl:value-of select="LinkProxyfunc:LookupPartnerInIdByKey('GLN')"/> </GLN> <VendorNumber> <xsl:value-of select="LinkProxyfunc:LookupPartnerInConfigurationKey('VendorNumber')"/> </VendorNumber> </PartnerIn> <PartnerOut> <Name> <xsl:value-of select="LinkProxyfunc:GetPartnerOutName()"/> </Name> <PartnerKey> <xsl:value-of select="LinkProxyfunc:GetPartnerOutPartnerKey()"/> </PartnerKey> <Comment> <xsl:value-of select="LinkProxyfunc:GetPartnerOutComment()"/> </Comment> <IsInternal> <xsl:value-of select="LinkProxyfunc:GetPartnerOutIsInternal()"/> </IsInternal> <IsDeleted> <xsl:value-of select="LinkProxyfunc:GetPartnerOutIsDeleted()"/> </IsDeleted> <MainId> <xsl:value-of select="LinkProxyfunc:GetPartnerOutMainId()"/> </MainId> <CVR> <xsl:value-of select="LinkProxyfunc:LookupPartnerOutIdByKey('CVR')"/> </CVR> <CustomerNumber> <xsl:value-of select="LinkProxyfunc:LookupPartnerOutConfigurationKey('CustomerNumber')"/> </CustomerNumber> </PartnerOut> <ConversionTables> <Lookup1> <xsl:value-of select="LinkProxyfunc:ConversionLookupGlobalValue('Table1', 'LookupColumn1', 'Column1', 'Column1Value')"/> </Lookup1> <Lookup2> <xsl:value-of select="LinkProxyfunc:ConversionLookupPartnerInValue('Table2', 'LookupColumn2', 'Column1', 'Column1Value', 'Column2', 'Column2Value')"/> </Lookup2> <Lookup3> <xsl:value-of select="LinkProxyfunc:ConversionLookupPartnerOutValue('Table3', 'LookupColumn3', 'Column1', 'Column1Value', 'Column2', 'Column2Value', 'Column3', 'Column3Value')"/> </Lookup3> </ConversionTables> <LinkSettings> <Setting1> <xsl:value-of select="LinkProxyfunc:GetSettingValue('Setting1')"/> </Setting1> </LinkSettings> <ErrorHandling> <FailDocument> <xsl:value-of select="LinkProxyfunc:RaiseError('No lines found in order.', false())"/> </FailDocument> <FailDocumentWithErrorCode> <xsl:value-of select="LinkProxyfunc:RaiseError('No lines found in order.', 'RT62W', false())"/> </FailDocumentWithErrorCode> <IgnoreDocument> <xsl:value-of select="LinkProxyfunc:RaiseError('No lines found in order.', 'RT62W', 'Ignored', false())"/> </IgnoreDocument> </ErrorHandling> <ContextProperties> <TestProperty> <xsl:value-of select="LinkProxyfunc:GetContextPropertyValue('NoProperty', 'http://schemas.bizbrains.com/properties/test')"/> </TestProperty> </ContextProperties> </ns0:Root> </xsl:template> </xsl:stylesheet> |
Info |
---|
The same example is available in the Visual Studio project template where it’s possible to debug into the XSLT. |
...