J
Jacques
I'm experiencing the following problem
The source xml file uses a prefix (wpl and look like this (shortened):
-----------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wplestinations xmlns:wpl="www.sapportals.com/portal/landscape"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation="wpl_jco_destionations_v10.xsd">
<wplestination name="SAP_R3_Financials_DEV200">
<wpl:SYSTEM>ZSECDS1200</wpl:SYSTEM>
<wpl:MSHOST>secacsap</wpl:MSHOST>
<wpl:R3NAME>DS1</wpl:R3NAME>
<wpl:CLIENT>200</wpl:CLIENT>
</wplestination>
-----------------------------------------------------------------
The xsl file i created loos like this:
----------------------------------------------------------------
<?xml version="1.0" ?>
<wpl:stylesheet xmlns:wpl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<wplutput method="text"/>
<wpl:template match="Destination">
<wpl:value-of select="@name"/>
</wpl:template>
</wpl:stylesheet>
-------------------------------------------------------------------
I then run
xalan -o output.txt jcoDestinations.xml jcoDestinations.xsl
I would expect the output to be
SAP_R3_Financials_DEV200
however the output is:
ZSECDS1200
secacsap
DS1
200
I removed all the "wpl:" from the source, changed the xls to use "xsl"
rather than "wpl". This produces the expected output.
Is this a bug, or am I doing somthing wrong?
Regards
Jacques
The source xml file uses a prefix (wpl and look like this (shortened):
-----------------------------------------------------------------
<?xml version="1.0" encoding="UTF-8"?>
<wplestinations xmlns:wpl="www.sapportals.com/portal/landscape"
xmlns:xsi="http://www.w3.org/2000/10/XMLSchema-instance"
xsi:schemaLocation="wpl_jco_destionations_v10.xsd">
<wplestination name="SAP_R3_Financials_DEV200">
<wpl:SYSTEM>ZSECDS1200</wpl:SYSTEM>
<wpl:MSHOST>secacsap</wpl:MSHOST>
<wpl:R3NAME>DS1</wpl:R3NAME>
<wpl:CLIENT>200</wpl:CLIENT>
</wplestination>
-----------------------------------------------------------------
The xsl file i created loos like this:
----------------------------------------------------------------
<?xml version="1.0" ?>
<wpl:stylesheet xmlns:wpl="http://www.w3.org/1999/XSL/Transform"
version="1.0">
<wplutput method="text"/>
<wpl:template match="Destination">
<wpl:value-of select="@name"/>
</wpl:template>
</wpl:stylesheet>
-------------------------------------------------------------------
I then run
xalan -o output.txt jcoDestinations.xml jcoDestinations.xsl
I would expect the output to be
SAP_R3_Financials_DEV200
however the output is:
ZSECDS1200
secacsap
DS1
200
I removed all the "wpl:" from the source, changed the xls to use "xsl"
rather than "wpl". This produces the expected output.
Is this a bug, or am I doing somthing wrong?
Regards
Jacques