From d92db1d61d9a69e372ffcd2c7f7bdfa678bb66ff Mon Sep 17 00:00:00 2001 From: "David E. Jones" Date: Mon, 12 Nov 2007 20:59:24 +0000 Subject: [PATCH] Changed templates to escape characters to avoid those that are in the strings but cause problems when just dropped into an XML file git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@594296 13f79535-47bb-0310-9956-ffa450edef68 --- oagis/webapp/oagis/message/ConfirmBod.ftl | 4 +-- .../webapp/oagis/message/ProcessShipment.ftl | 26 +++++++++---------- .../webapp/oagis/message/ReceiveDelivery.ftl | 24 ++++++++--------- 3 files changed, 27 insertions(+), 27 deletions(-) diff --git a/oagis/webapp/oagis/message/ConfirmBod.ftl b/oagis/webapp/oagis/message/ConfirmBod.ftl index da05fb112..8cefba9ea 100644 --- a/oagis/webapp/oagis/message/ConfirmBod.ftl +++ b/oagis/webapp/oagis/message/ConfirmBod.ftl @@ -56,8 +56,8 @@ <#if errorMapList?exists> <#list errorMapList as errorMap> - ${errorMap.description?if_exists} - ${errorMap.reasonCode?if_exists} + ${errorMap.description?if_exists?xml} + ${errorMap.reasonCode?if_exists?xml} diff --git a/oagis/webapp/oagis/message/ProcessShipment.ftl b/oagis/webapp/oagis/message/ProcessShipment.ftl index 0c8c28928..75696ebd9 100644 --- a/oagis/webapp/oagis/message/ProcessShipment.ftl +++ b/oagis/webapp/oagis/message/ProcessShipment.ftl @@ -67,8 +67,8 @@ under the License. <#else> PREPAID - ${orderItemShipGroup.shippingInstructions?if_exists} - ${shipnotes?if_exists}<#-- if order was a return replacement order (associated with return), then set to RETURNLABEL otherwise leave blank --> + ${orderItemShipGroup.shippingInstructions?if_exists?xml} + ${shipnotes?if_exists?xml}<#-- if order was a return replacement order (associated with return), then set to RETURNLABEL otherwise leave blank --> ${orderItemShipGroup.shipmentMethodTypeId?if_exists} <#if address?has_content> @@ -79,40 +79,40 @@ under the License. <#-- NOTE: this is the to name --> <#assign toName = (address.toName)?default(partyName)?if_exists/> <#if (toName?length > partnerNameSize)><#assign toName = (toName?substring(0,partnerNameSize))?if_exists/> - ${toName?if_exists} + ${toName?if_exists?xml} SHIPTO USD <#assign address1 = address.address1?if_exists/> <#if (address1?length > partnerAddressLineSize)><#assign address1 = (address1?substring(0,partnerAddressLineSize))?if_exists/> - ${address1?if_exists} + ${address1?if_exists?xml} <#if address.address2?exists> <#assign address2 = address.address2?if_exists/> <#if (address2?length > partnerAddressLineSize)><#assign address2 = (address2?substring(0,partnerAddressLineSize))?if_exists/> - ${address2} + ${address2?xml} <#assign city = address.city?if_exists/> <#if (city?length > partnerAddressCitySize)><#assign city = (city?substring(0,partnerAddressCitySize))?if_exists/> - ${city?if_exists} + ${city?if_exists?xml} <#assign countryGeoId = address.countryGeoId?if_exists/> <#if (countryGeoId?length > partnerAddressCountrySize)><#assign countryGeoId = (countryGeoId?substring(0,partnerAddressCountrySize))?if_exists/> ${countryGeoId?if_exists} <#-- --> - ${address.postalCode?if_exists} + ${address.postalCode?if_exists?xml} ${address.stateProvinceGeoId?if_exists} <#if telecomNumber?has_content> - <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists} + <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} <#-- NOTE: this is the attention name --> <#assign attnName = (address.attnName)?default(partyName)?if_exists/> <#if (attnName?length > partnerContactNameSize)><#assign attnName = (attnName?substring(0,partnerContactNameSize))?if_exists/> - ${attnName?if_exists} - ${emailString?if_exists} + ${attnName?if_exists?xml} + ${emailString?if_exists?xml} <#----> - <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists} + <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} @@ -140,13 +140,13 @@ under the License. <#list externalIdSet?if_exists as externalId> PARTNER_SO - ${externalId?if_exists} + ${externalId?if_exists?xml} <#list correspondingPoIdSet?if_exists as correspondingPoId> CUST_PO - ${correspondingPoId?if_exists} + ${correspondingPoId?if_exists?xml} <#-- data preparation code to create the replacementReturnId; this is the returnId if the order is a return replacement order --> diff --git a/oagis/webapp/oagis/message/ReceiveDelivery.ftl b/oagis/webapp/oagis/message/ReceiveDelivery.ftl index dda2a028e..6e7ac86ab 100644 --- a/oagis/webapp/oagis/message/ReceiveDelivery.ftl +++ b/oagis/webapp/oagis/message/ReceiveDelivery.ftl @@ -54,26 +54,26 @@ under the License. <#if (partyNameView.firstName)?has_content><#assign partyName = partyNameView.firstName/> <#if (partyNameView.middleName)?has_content><#assign partyName = partyName + " " + partyNameView.middleName/> <#if (partyNameView.lastName)?has_content><#assign partyName = partyName + " " + partyNameView.lastName/> - ${postalAddress.toName?default(partyName)?if_exists} + ${postalAddress.toName?default(partyName)?if_exists?xml} SHIPFROM USD - ${postalAddress.address1?if_exists} + ${postalAddress.address1?if_exists?xml} <#if postalAddress.address2?has_content> - ${postalAddress.address2?if_exists} + ${postalAddress.address2?if_exists?xml} - ${postalAddress.city?if_exists} + ${postalAddress.city?if_exists?xml} ${postalAddress.countryGeoId?if_exists} <#-- --> - ${postalAddress.postalCode?if_exists} + ${postalAddress.postalCode?if_exists?xml} ${postalAddress.stateProvinceGeoId?if_exists} - <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists} + <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} - ${postalAddress.attnName?default(partyName)?if_exists} - ${emailString?if_exists} + ${postalAddress.attnName?default(partyName)?if_exists?xml} + ${emailString?if_exists?xml} <#-- --> - <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode}-${telecomNumber.areaCode?if_exists}-${telecomNumber.contactNumber?if_exists} + <#if telecomNumber.countryCode?has_content>${telecomNumber.countryCode?xml}-${telecomNumber.areaCode?if_exists?xml}-${telecomNumber.contactNumber?if_exists?xml} @@ -96,15 +96,15 @@ under the License. EACH ${returnItem.productId?if_exists} - ${returnReason.description?if_exists} + ${returnReason.description?if_exists?xml} RMA - ${returnId?if_exists} + ${returnItem.returnId} ${returnItem.returnItemSeqId} <#list serialNumberList?if_exists as serialNumber> - ${serialNumber} + ${serialNumber?xml}