hi,
I am new to this xsl ,xml..
I want to transform the XML to html using a XSL.
my xml is like as follows
<?xml version="1.0" encoding="UTF-8" ?>
<Invoice xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd">
<Section>0.0.0.0</Section>
<Party AssociateType="C">
<AccountNo>postcust</AccountNo>
<AddressType>Billing Address</AddressType>
<Name>
<Name1>postpaid customer</Name1>
</Name>
;
;
;
My XSL is as follows
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
xmlns:xsl=" version="1.0">
<xsl
utput method="html" indent="yes"/>
<xsl:template match="/">
<html>
<head>
<title>PPMS5.1.1</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<xsl:for-each select="Invoice">
<div id="Layer1" style="position:absolute; width:200px; height:74px; z-index:1; left: 91px; top: 15px">
<table width="75%" border="0">
<tr>
<td><xsl:value-of select="Party/Name/Name1"/></td>
</tr>
Like the problem here is the
in my xml instead of
<Invoice xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd">
if i give
<Invoice > the html gets properly generated.
How should be the xsl format to support the above thing
i tried this but not working
<xsl:stylesheet
xmlns:xsl="xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd"
version="1.0">
regards,
Deepa
I am new to this xsl ,xml..
I want to transform the XML to html using a XSL.
my xml is like as follows
<?xml version="1.0" encoding="UTF-8" ?>
<Invoice xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd">
<Section>0.0.0.0</Section>
<Party AssociateType="C">
<AccountNo>postcust</AccountNo>
<AddressType>Billing Address</AddressType>
<Name>
<Name1>postpaid customer</Name1>
</Name>
;
;
;
My XSL is as follows
<?xml version="1.0" encoding="UTF-8" ?>
<xsl:stylesheet
xmlns:xsl=" version="1.0">
<xsl
<xsl:template match="/">
<html>
<head>
<title>PPMS5.1.1</title>
</head>
<body bgcolor="#FFFFFF" text="#000000">
<xsl:for-each select="Invoice">
<div id="Layer1" style="position:absolute; width:200px; height:74px; z-index:1; left: 91px; top: 15px">
<table width="75%" border="0">
<tr>
<td><xsl:value-of select="Party/Name/Name1"/></td>
</tr>
Like the problem here is the
in my xml instead of
<Invoice xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd">
if i give
<Invoice > the html gets properly generated.
How should be the xsl format to support the above thing
i tried this but not working
<xsl:stylesheet
xmlns:xsl="xmlns="xmlns:xsi="xsi:schemaLocation=" invoice.xsd"
version="1.0">
regards,
Deepa