xerces-c-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sathasivam, Elayaraja" <elayaraja.sathasi...@capgemini.com>
Subject XSL1.0 with Xalan-C no output / But output in Xalan-J....?????
Date Fri, 25 Jul 2008 05:38:11 GMT
Hi,

  I am using Xalan-C with XSL1.0.

 

Command: $ xalan ForumXML.xml ForumXSL.xsl

 

Actual Output: |      ???????????????????????

 

Expected Output: 20080428|  ( If I run in Xalan-J its working fine, why
not in Xalan-C ????????????? )

 

XSLT processor: Xalan-C_1_10_0-win32-msvc_60,
xerces-c-windows_2000-msvc_60

 

Find the input xml file and the xsl file,

 

ForumXML.xml

------------------------

<?xml version="1.0" encoding="UTF-8"?>

<Envelope>

  <Part File='INV24.2302.xml' LinkType='REL' DocType='INV'
Format='XML'/>

  <Part File='ADDR24.2302.xml' LinkType='REL' DocType='ADD'
Format='XML'/>

</Envelope>

 

 

ForumXSL.xsl

-----------------------

<?xml version="1.0" encoding="UTF-8"?>

 

<!DOCTYPE stylesheet [

<!ENTITY space "<xsl:text> </xsl:text>">

<!ENTITY tab "<xsl:text>&#9;</xsl:text>">

<!ENTITY sep "<xsl:text>|</xsl:text>">

<!ENTITY cr "<xsl:text>

</xsl:text>">

]>

 

<xsl:stylesheet  xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:xalan="http://xml.apache.org/xalan"  version="1.0">

 

<xsl:output method="text"/>

 

<xsl:template match="/">   

    <xsl:call-template name="createAccess"/>     

</xsl:template>    

  

<xsl:template name="createAccess">     

            <xsl:apply-templates
select="document(/Envelope/Part/@File)/Document/AddressPage/BillAcc"
mode="FORMHDR"/>       

</xsl:template>

 

<xsl:template match="/Document/AddressPage/BillAcc" mode="FORMHDR"> 

            <xsl:value-of
select="document(/Envelope/Part/@File)/Document/Invoice/Date[@Type='INV'
]/@Date"/>&sep;

</xsl:template> 

 

</xsl:stylesheet>

 

INV24.2302.xml

-----------------------

<?xml version='1.0' encoding="UTF-8"?>

<Document>

<Invoice>

<Date Type="INV" Date="20080428"/>

<Date Type="START" Date="20060101" />

</Invoice>

</Document>

 

ADDR24.2302.xml

------------------------------

<?xml version='1.0' encoding="UTF-8"?>

<Document>

<AddressPage xml:lang="EN">

<BillAcc>

<Customer Id="1.85" SocSecNo="" DrivLicNo=""/>

</BillAcc>

</AddressPage>

</Document>

 

 

Regards,

Raja 

 


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message