Thanks Bill for Your Reply
Actually my XML is embedded in
JSP and it is using XSL, which is also embedded in JSP.
My XML looks like this. In fact it is JSP
<%@ page contentType="text/html;charset=ISO-8859-1" %>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/tag-struts.tld" prefix="tags" %>
<tags:xslt xsl="makePayment.jsp" name="userAcctInfo" property="acctNumber">
<html:form method="POST" action="/makePaymentSummaryAction.do">
<environment.country><bean:write name="environment.country"/></environment.country>
<environment.language><bean:write name="environment.language"/></environment.language>
<environment.brand><bean:write name="environment.brand"/></environment.brand>
<%@ include file="includes/header.jsp" %>
<%@ include file="includes/nav_left.jsp" %>
<footer>true</footer>
<inputMode><bean:write name="paymentForm" property="inputMode"/></inputMode>
<instruction><![CDATA[<tags:property property="payment.text.makePayment.instructions"/>]]></instruction>
<instructionTrk><![CDATA[<tags:property property="payment.text.makePayment.instructionsOne"/>
<br/><br/><tags:property property="payment.text.makePayment.cuttofftimeOne"/> <tags:property property="companyName.text.trade"/> <tags:property property="payment.text.makePayment.cuttofftimeTwo"/>
<br/><br/><tags:property property="payment.text.makePayment.instructionsTwo"/>
]]></instructionTrk>
<requiredText><tags:property property="payment.text.required"/></requiredText>
<paymentLink><![CDATA[<tags:url scheme="https"/><tags:property property="navLeft.link.paymentProfile"/>]]></paymentLink>
<paymentLinkText><tags:property property="payment.text.makePayment.instructionsLinkText"/></paymentLinkText>
<errors><![CDATA[<tags:errors style="healey" anchors="true" fields="payment.paymentAmt;payment.paymentDate;"/>]]></errors>
<paymentFields>
<paymentAmountLabel><tags:property property="payment.text.paymentAmount"/></paymentAmountLabel>
<paymentCurrencyText><tags:property property="payment.text.currency"/></paymentCurrencyText>
<paymentAmountField><![CDATA[<tags:text property="payment.paymentAmt" size="12" maxlength="12" anchor="true" errorsign="true"/> <font color="#000000"><tags:property property="payment.text.amountExample"/></font>]]></paymentAmountField>
<paymentDateLabel><tags:property property="payment.text.paymentDate"/></paymentDateLabel>
<paymentDateMonthField><![CDATA[<tags:text property="payment.paymentMonth" size="2" maxlength="2" anchor="false" errorsign="false"/>]]></paymentDateMonthField>
<paymentDateDayField><![CDATA[<tags:text property="payment.paymentDay" size="2" maxlength="2" anchor="false" errorsign="false"/>]]></paymentDateDayField>
<paymentDateYearField><![CDATA[<tags:text property="payment.paymentYear" size="4" maxlength="4" anchor="false" errorsign="false"/>
<tags:errorsign property="payment.paymentDate"/>
<a name="payment.paymentDate"/>
<font color="#000000"><tags:property property="payment.text.dateExample"/></font>]]></paymentDateYearField>
<accountNumberLabel><tags:property property="payment.text.accountNumber"/></accountNumberLabel>
<accountNumberValue><bean:write name="userAcctInfo" property="acctNumber"/></accountNumberValue>
<bankNameLabel><tags:property property="payment.text.bankName"/></bankNameLabel>
<bankNameValue><bean:write name="bankProfile" property="bankName"/></bankNameValue>
<bankAcctTypeLabel><tags:property property="payment.text.bankAcctType.label"/></bankAcctTypeLabel>
<bankAcctTypeValue><bean:write name="bankProfile" property="acctDescription"/></bankAcctTypeValue>
<bankRoutingNumberLabel><tags:property property="payment.text.bankRoutingNumber"/></bankRoutingNumberLabel>
<bankRoutingNumberValue><tags:ext-maskwrite name="bankProfile" property="routingNum" maskingCharacter="x" unMaskedDigits="4"/></bankRoutingNumberValue>
<bankAcctNumberLabel><tags:property property="payment.text.bankAcctNumber"/></bankAcctNumberLabel>
<bankAcctNumberValue><tags:ext-maskwrite name="bankProfile" property="acctNum" maskingCharacter="x" unMaskedDigits="4"/></bankAcctNumberValue>
<emailLabel><tags:property property="payment.text.email"/></emailLabel>
<emailValue><bean:write name="bankProfile" property="email"/></emailValue>
</paymentFields>
</html:form>
</tags:xslt>
MY XSL looks like this, which is also JSP
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE xsl:stylesheet [
<!ENTITY raquo "�">
<!ENTITY nbsp " ">
<!ENTITY copy "�">
<!ENTITY reg "�">
]>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0">
<xsl:output method="html" indent="yes" encoding="ISO-8859-1"/>
<jsp:include page="includes/header.jsp"/>
<jsp:include page="includes/nav_left.jsp"/>
<jsp:include page="includes/footer.jsp"/>
<jsp:include page="includes/template.jsp"/>
<jsp:include page="includes/paymentFields.jsp"/>
<xsl:template match="form">
<xsl:text/>
<script language="javascript"><![CDATA[
function init(){
selectMenu('makePayment');
}
function getElement( name ) {
for ( var w = 0; w < document.paymentForm.elements.length; w++ ) {
if ( document.paymentForm.elements[ w ].name == name ) {
return document.paymentForm.elements[ w ];
}
}
return null;
}
function submitForm() {
getElement( "inputMode" ).value = "insert";
document.paymentForm.submit();
}
]]></script>
<xsl:element name="form">
<xsl:attribute name="name">paymentForm</xsl:attribute>
<xsl:attribute name="method">POST</xsl:attribute>
<xsl:attribute name="action"><xsl:value-of select="/form/header/https"/>/makePaymentSummaryAction.do</xsl:attribute>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">environment.country</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="environment.country"/></xsl:attribute>
</xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">environment.language</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="environment.language"/></xsl:attribute>
</xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">environment.brand</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="environment.brand"/></xsl:attribute>
</xsl:element>
<xsl:element name="input">
<xsl:attribute name="type">hidden</xsl:attribute>
<xsl:attribute name="name">inputMode</xsl:attribute>
<xsl:attribute name="value"><xsl:value-of select="inputMode"/></xsl:attribute>
</xsl:element>
<table width="750" border="0" cellspacing="0" cellpadding="0">
<tr align="left" valign="top">
<td>
<table cellspacing="0" cellpadding="0" border="0">
<tr><td><div id="shadeImg"></div></td></tr>
</table>
<table border="0" width="540" style="margin: 0 0 0 10px;" cellspacing="0" cellpadding="0">
<tr><td colspan="2"><img src="resources/images/spacer.gif" height="22"/></td></tr>
<tr>
<td align="left"><img src="resources/images/makePaymentPayBill.gif"/></td>
<td align="right" valign="center"><img src="resources/images/step.gif"/><img src="resources/images/spacer.gif" width="8"/><img src="resources/images/oneSelected.gif"/><img src="resources/images/spacer.gif" width="8"/><img src="resources/images/two.gif"/><img src="resources/images/spacer.gif" width="8"/><img src="resources/images/three.gif"/></td>
</tr>
<tr><td colspan="2"><img src="resources/images/spacer.gif" height="12"/></td></tr>
<tr><td colspan="2"><img src="resources/images/dotline.gif"/></td></tr>
</table>
<table border="0" width="500" style="margin: 0 0 0 10px;" cellspacing="0" cellpadding="0">
<tr><td><img src="resources/images/spacer.gif" height="19"/></td></tr>
<tr>
<td class="peHomeText">
<xsl:value-of disable-output-escaping="yes" select="instruction"/><xsl:text> </xsl:text>
<xsl:element name="a">
<xsl:attribute name="href"><xsl:value-of select="paymentLink"/></xsl:attribute>
<xsl:value-of select="paymentLinkText"/>
</xsl:element>
<br/><br/>
<font color="red">*</font><xsl:value-of select="requiredText"/>
</td>
</tr>
</table>
<table border="0" width="500" style="margin: 0 0 0 10px;" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" width="525">
<table width="525">
<tr>
<td width="3"><img src="resources/images/spacer.gif" height="1" width="3"/></td>
<td width="519">
<!-- START ERRORS -->
<span class="bodyfont"><xsl:value-of disable-output-escaping="yes" select="errors"/></span>
<!-- END ERRORS -->
</td>
<td><img src="resources/images/spacer.gif" height="1" width="3"/></td>
</tr>
</table>
</td>
</tr>
</table>
<table border="0" width="500" style="margin: 0 0 0 10px;" cellspacing="0" cellpadding="0">
<xsl:apply-templates select="paymentFields"/>
</table>
<table border="0" width="500" style="margin: 0 0 0 10px;" cellspacing="0" cellpadding="0">
<tr>
<td colspan="2" align="left">
<table border="0" cellpadding="0" cellspacing="0">
<tr><td><img src="resources/images/spacer.gif" height="15"/></td></tr>
<tr>
<td align="left">
<span class="con"><a href="javascript:submitForm();"></a></span>
</td>
</tr>
</table>
</td>
</tr>
</table>
</td>
</tr>
</table>
</xsl:element>
</xsl:template>
</xsl:stylesheet>
Can you check this and see what the error is. We are using custom tag library. If i add <%@ taglib uri="/WEB-INF/tag-struts.tld" prefix="tags" %> to my XSL then it gives the error which i have posted otherwise it gives tags:property is not bound.
Your help will higly appreciated
Thanks