problem in using DCD ( Document Content Description) PLEASE DO NOT REPLY TO THIS MESSAGE. TO FURTHER COMMENT ON THE STATUS OF THIS BUG PLEASE FOLLOW THE LINK BELOW AND USE THE ON-LINE APPLICATION. REPLYING TO THIS MESSAGE DOES NOT UPDATE THE DATABASE, AND SO YOUR COMMENT WILL BE LOST SOMEWHERE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=3123 *** shadow/3123 Tue Aug 14 10:57:41 2001 --- shadow/3123.tmp.7992 Tue Aug 14 10:57:41 2001 *************** *** 0 **** --- 1,143 ---- + +============================================================================+ + | problem in using DCD ( Document Content Description) | + +----------------------------------------------------------------------------+ + | Bug #: 3123 Product: XalanJ2 | + | Status: NEW Version: 2.2.x | + | Resolution: Platform: PC | + | Severity: Blocker OS/Version: Windows NT/2K | + | Priority: Other Component: org.apache.xalan | + +----------------------------------------------------------------------------+ + | Assigned To: [EMAIL PROTECTED] | + | Reported By: [EMAIL PROTECTED] | + +----------------------------------------------------------------------------+ + | URL: | + +============================================================================+ + | DESCRIPTION | + It may not be necessarily a bug.I have problem while running the parser using, + + java org.apache.xalan.xslt.Process -in xmlSource -xsl stylesheet -out outputfile + + Here are my sample source files. + ------------------------------- + + xmlsource + --------- + <?xml version="1.0" encoding="UTF-8"?> + <?xml-stylesheet type="text/xsl" href="sdat.xsl" ?> + <!DOCTYPE SDAT SYSTEM "sdat.dcd"> + + <SDAT> + <OwnerInformation> + <OwnerName>FRENCH, EDMOND B & B J</OwnerName> + <Use> RESIDENTIAL</Use> + <MailingAddress> + <MAddress>12241 CHERRY HILL RD</MAddress> + <MCity>SILVER SPRING </MCity> + <MState> MD </MState> + <MZip>20904</MZip> + </MailingAddress> + </OwnerInformation> + </SDAT> + + ------------------------------------------------------------------------- + sdat.dcd + ----------- + <?xml encoding="UTF-8" version="1.0"?> + <DCD> + + <ElementDef Type="SDAT" Model="Elements" Content="Closed" Root="True"> + + <ElementDef Type="OnwerInformation" Model="Elements" content="Closed"> + <Description>Information about owner is declared here</Description> + <ElementDef Type="OwnerName" Model="Data" Datatype="string"/> + <ElementDef Type="Use" Model="Data" Datatype="string"/> + <ElementDef Type="MailingAddress" Model="Elements" content="Closed"> + <Description>Mailing address of the owner</Description> + <ElementDef Type="MAddress" Model="Data" Datatype="string"/> + <ElementDef Type="MCity" Model="Data" Datatype="string"/> + <ElementDef Type="MState" Model="Data" Datatype="string"/> + <ElementDef Type="MZip" Model="Data" Datatype="int"/> + </ElementDef> + </ElementDef> + + </ElementDef> + + </DCD> + + ------------------------------------------------------------------------ + stylesheet + ---------- + + <?xml version="1.0" ?> + + <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" version="1.0"> + + + <xsl:template match="/"> + <html> + <body bgColor="#ffffff"> + + <!-- Owner Information is displayed here --> + + + <center><u> Owner Information</u></center> + + <xsl:apply-templates select="SDAT/County/OwnerInformation" /> + + </body> + </html> + </xsl:template> + + + + <!-- THE BELOW TEMPLATE RETRIEVES THE DATA FROM XML FILE MATCHING + WITH THE NODE "OwnerInformation", WHICH IS THE FIRST CHILD OF THE ROOT + ELEMENT "SDAT" --> + + <xsl:template match="SDAT/County/OwnerInformation"> + <table> + <tr> + <td><b>Owner Name:</b></td> + <td><xsl:value-of select="OwnerName" /></td> + <td width="300"> </td> + <td><b> Use: </b></td> + <td><xsl:value-of select="Use" /></td> + </tr> + <tr> + + <td><b>Mailing Address: </b> </td> + <td> <xsl:value-of select="MailingAddress/MAddress" /></td> + <td width="300"> </td> + <td ><b> Principal Residence :</b> </td> + <td > <xsl:value-of select="PrincipalResidence" /></td> + </tr> + + <tr> + <td></td> + <td ><xsl:value-of select="MailingAddress/MCity" />, + <xsl:value-of select="MailingAddress/MState" />, + <xsl:value-of select="MailingAddress/MZip" /></td> + <td width="300"> </td> + <td align="right" colspan="2"> </td> + </tr> + </table> + </xsl:template> + </xsl:stylesheet> + ---------------------------------------------------------------------- + + + outputfile has been specified as sdat.htm. The output of the parsed file is + directed into the file sdat.htm + + + + The error displayed when the parser ran is, + + XSLT Error (javax.xml.transform.TransformerException): no more pseudo attributes + is allowed. + + + I am very much thankful to you if I can get the solution to my problem ASAP. + + thanks and rgds, + venkat
