Subject: RE: [xsl] SAXParseException From: "Andrew Welch" <awelch@xxxxxxxxxxxxxxx> Date: Thu, 29 Aug 2002 17:29:04 +0100 |
Aside from the liberal ! marks that I think aren't really part of your xml, you are missing a " from one of the namespace attributes. A good thing to use is Xselerator - it can check for well-formedness and take you right to the spot where it fails. cheers andrew > -----Original Message----- > From: Manish Shah [mailto:manish@xxxxxxxxxxxx] > Sent: 29 August 2002 17:12 > To: xsl-list@xxxxxxxxxxxxxxxxxxxxxx > Subject: Re: [xsl] SAXParseException > > > Hey, > > I'm going to send out the XML and XSL. I'm not sure what would be > causing the exception. Remember, the page does get rendered below the > exception, and it comes up intermittedly. > > I'm honestly very stumped. Any help would be appreciated. > > Thank you > Manish > > > Here's the XML: > <listing><ID>5475</ID><ownerUsername>test_agent</ownerUsername > ><createdDate>2002-08-22T16:42:57.000-05:00</createdDate><modi > fiedDate>2002-08-26T03:11:54.572-05:00</modifiedDate><primaryA > gent><ID>505</ID></primaryAgent><status>1002</status><archived > >false</archived><leaseOrSale>1006</leaseOrSale><listAsBoth>fa > lse</listAsBoth><accessType>Full > Access</accessType><password></password><startDate>8/22/2002</ > startDate><endDate>12/12/2002</endDate><sharedCommission>false > </sharedCommission><signVisible>false</signVisible><title>OFS > test: Manish</title><price>0</price><property xsi:type="property" > xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><ID>5282 > </ID><ownerUsername>test_agent</ownerUsername><createdDate>200 > 2-08-22T16:42:58.000-05:00</createdDate><modifiedDate>2002-08- > 26T03:11:52.430-05:00</modifiedDate><address><ID>36155</ID><ow > nerUsername>test_agent</ownerUsername><createdDate>2002-08-22T > 16:42:57.000-05:00</createdDate><modifiedDate>2002-08-26T03:10 > :06.765-05:00</modifiedDate><postalCode></postalCode><state>Ch > oose > State</state><persisted>true</persisted><street3></street3><st > reet2></street2><street1></street1><city></city><changed>false > </changed><searchCriteria>false</searchCriteria></address><cou > nty></county><latitude>-9090909.0</latitude><longitude>-909090 > 9.0</longitude><yearBuilt></yearBuilt><yearRenovated></yearRen > ovated><loanStartDateExisting></loanStartDateExisting><loanDue > DateExisting></loanDueDateExisting><yearIncomeExpense></yearIn > comeExpense><assessmentYear></assessmentYear><taxableValueYear > ></taxableValueYear><mediaFile><ID>9017</ID><ownerUserna! > me>test_agent</ownerUsername><createdDate>2002-08-26T03:11:46. > 110-05:00</createdDate><modifiedDate>2002-08-26T03:11:46.110-0 > 5:00</modifiedDate><mediaType>1302</mediaType><sortPriority>-9 > 090909</sortPriority><title>PD-clean.JPG</title><filename>9017 > _PD-clean.JPG</filename><filetype>JPG</filetype><caption></cap > tion><height>480</height><width>640</width><searchCriteria>fal > se</searchCriteria><changed>true</changed><persisted>true</per > sisted><_private>false</_private></mediaFile><elevatorsFreight > >0</elevatorsFreight><taxableValueLand>0.0</taxableValueLand>< > percentOccupied>0</percentOccupied><loanPaymentExisting>0.0</l > oanPaymentExisting><siteDescription>n,m.n,ZXC</siteDescription > ><parkingCoveredRate>0.0</parkingCoveredRate><classType>Office > </classType><tenantLeasingCommission>0.0</tenantLeasingCommiss > ion><utilities>0.0</utilities><subtype></subtype><grossOperati > ngIncome>0.0</grossOperatingIncome><outsideStorage>false</outs > ideStorage><status></status><highwayAccess>sdfads</highwayAcc! > ess><displayableTenantLeaseExpires></displayableTenantLeaseExp > ires><stormSewers>false</stormSewers><changed>false</changed>< > classSubType>OfficeForSale</classSubType><airportAccess>aadsfa > s</airportAccess><sanitarySewers>false</sanitarySewers><taxabl > eValuePersonalProperty>0.0</taxableValuePersonalProperty><squa > reFeetRentable>0</squareFeetRentable><gasDetection>false</gasD > etection><askingSalePrice>0.0</askingSalePrice><displayableTax > ableValueYear></displayableTaxableValueYear><searchCriteria>fa > lse</searchCriteria><tenantSquareFeet>0</tenantSquareFeet><dis > playableYearBuilt></displayableYearBuilt><CFBT>0.0</CFBT><medi > aFileIDs > xsi:type="java:java.lang.Integer">9017</mediaFileIDs><manageme > nt>0.0</management><sprinkledDry>false</sprinkledDry><elevator > sPassenger>0</elevatorsPassenger><zoning></zoning><displayable > Name>Office</displayableName><avgAskingRentTo>0.0</avgAskingRe > ntTo><assumableFinancingExisting>false</assumableFinancingExis > ting><securityAlarms>false</securityAlarms><downPaym! > entExisting>0.0</downPaymentExisting><insurance>0.0</insurance > ><otherIncome>0.0</otherIncome><availableSpaceSquareFeet>0</av > ailableSpaceSquareFeet><maintenance>0.0</maintenance><lotDimen > sionsIrregular>false</lotDimensionsIrregular><smokeDetection>f > alse</smokeDetection><parkingSurfaceRate>0.0</parkingSurfaceRa > te><saleLeaseback>false</saleLeaseback><fireAlarms>false</fire > Alarms><tenantCurrentRent>0.0</tenantCurrentRent><interestRate > ExistingAPR>0.0</interestRateExistingAPR><securityCameras>fals > e</securityCameras><vacancyAllowance>0.0</vacancyAllowance><wa > ges>0.0</wages><incentives>XCZC</incentives><grossRentMultipli > er>0.0</grossRentMultiplier><balloonPaymentExisting>0.0</ballo > onPaymentExisting><cashOnCash>0.0</cashOnCash><netOperatingInc > ome>0.0</netOperatingIncome><displayableAssessmentYear></displ > ayableAssessmentYear><loanAmountExisting>0.0</loanAmountExisti > ng><smallestUnitAvailable>0</smallestUnitAvailable><totalNumbe > rBuildings>0</totalNumberBuildings><totalAnnualTaxes>0.0</tot! > alAnnualTaxes><improvementsAssessment>0.0</improvementsAssessm > ent><parkingCovered>0</parkingCovered><displayableYearRenovate > d></displayableYearRenovated><waterFront>false</waterFront><va > cantSpaceSquareFeet>0</vacantSpaceSquareFeet><otherCapitalCost > s>0.0</otherCapitalCosts><assessedValuePersonalProperty>0.0</a > ssessedValuePersonalProperty><acresTotal>0.0</acresTotal><numb > erStories>0</numberStories><areaDescription>zxcvzxc</areaDescr > iption><persisted>true</persisted><sprinkledWet>false</sprinkl > edWet><displayableAnchorTenant>No</displayableAnchorTenant><ad > justedGrossIncome>0.0</adjustedGrossIncome><miscReserves>0.0</ > miscReserves><typicalFloorSquareFeet>0</typicalFloorSquareFeet > ><displayableLoanDueDateExisting></displayableLoanDueDateExist > ing><landAssessment>0.0</landAssessment><avgAskingRentLow>0.0< > /avgAskingRentLow><waterfrontDescription>asdfsfss</waterfrontD > escription><displayableYearIncomeExpense></displayableYearInco > meExpense><officeClass></officeClass><coreFactor>0.0</coreFac! > tor><potentialRentalIncome>0.0</potentialRentalIncome><special > Assessments>0.0</specialAssessments><outParcel>false</outParce > l><capRate>0.0</capRate><totalAnnualAssessments>0.0</totalAnnu > alAssessments><contiguousSquareFeet>0</contiguousSquareFeet><d > efaultImage>9017</defaultImage><totalDebtExisting>0.0</totalDe > btExisting><taxableValueImprovements>0.0</taxableValueImprovem > ents><anchorTenant>false</anchorTenant><parkingSurface>0</park > ingSurface><displayableLoanStartDateExisting></displayableLoan > StartDateExisting></property><incomplete>false</incomplete><no > tSoFresh>false</notSoFresh><displayablePrice>0</displayablePri > ce><statusLevel>1011</statusLevel><listingTypeMismatch>false</ > listingTypeMismatch><displayableAccessType>Full > Access</displayableAccessType><persisted>true</persisted><expi > red>false</expired><listingTerms > xsi:type="java:com.catylist.property.OfficeSaleTerms" > xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance"><persiste > d>true</persisted><changed>false</changed><modifie! > dDate>2002-08-26T03:08:44.668-05:00</modifiedDate><ID>5282</ID > ><ownerUsername>test_agent</ownerUsername><searchCriteria>fals > e</searchCriteria><createdDate>2002-08-26T03:08:44.668-05:00</ > createdDate></listingTerms><displayableEndDate>12/12/2002</dis > playableEndDate><searchCriteria>false</searchCriteria><changed > >true</changed><displayable>true</displayable><freshnessDate>2 > 002-08-26T03:11:52.348-05:00</freshnessDate><listedAsBoth>fals > e</listedAsBoth><displayableStartDate>8/22/2002</displayableSt > artDate><overview>test</overview></listing> > > > Here's the XSL: > > <?xml version="1.0"?> > <!DOCTYPE HTML_COMPONENTS[ > <!ENTITY nav SYSTEM "nav.xsl"> > <!ENTITY navButtons SYSTEM "../../common/xsl/navButtons.xsl"> > <!ENTITY categorytitle SYSTEM "../../common/xsl/categorytitle.xsl"> > <!ENTITY textfield SYSTEM "../../common/xsl/textfield.xsl"> > <!ENTITY textarea SYSTEM "../../common/xsl/textarea.xsl"> > <!ENTITY checkbox SYSTEM "../../common/xsl/checkbox.xsl"> > <!ENTITY radio SYSTEM "../../common/xsl/radio.xsl"> > <!ENTITY select SYSTEM "../../common/xsl/select.xsl"> > <!ENTITY submit SYSTEM "../../common/xsl/submit.xsl"> > <!ENTITY file SYSTEM "../../common/xsl/file.xsl"> > <!ENTITY personalPhoto SYSTEM "../../common/xsl/personalPhoto.xsl"> > <!ENTITY companyLogo SYSTEM "../../common/xsl/companyLogo.xsl"> > <!ENTITY help SYSTEM "../../common/xsl/help.xsl"> > <!ENTITY help_popup SYSTEM "../../common/xsl/help_popup.xsl"> > <!ENTITY error SYSTEM "../../common/xsl/error.xsl"> > ]> > > <xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform" > xmlns:saxon="http://icl.com/saxon" > extension-element-prefixes="saxon"> > <xsl:output method="html" indent="yes"/> > <xsl:template match="/JSPRoot"> > > <html> > <head> > <title></title> > <link rel="stylesheet" type="text/css"><xsl:attribute > name="href"><xsl:value-of > select="normalize-space(/JSPRoot/AGENT_CONSOLE_URL)"/>profiler > s/common/css/cie_profiler.css</xsl:attribute></link> > <script language="Javascript"><xsl:attribute > name="src"><xsl:value-of > select="normalize-space(/JSPRoot/AGENT_CONSOLE_URL)"/>profiler > s/common/javascript/helpshow.js</xsl:attribute></script> > <script language="Javascript"><xsl:attribute > name="src"><xsl:value-of > select="normalize-space(/JSPRoot/AGENT_CONSOLE_URL)"/>profiler > s/common/javascript/mm_scripts.js</xsl:attribute></script> > </head> > <body > onLoad="MM_showHideLayers('headerLoader?Header','','hide');hid > eForNetscape();"> > <form name="descriptorForm" method="post"><!-- > onSubmit="disableForm(this);">--> > <xsl:if > test="(normalize-space(/JSPRoot/CURRENT_CATEGORY)='PERSONAL_PHOTO') > or (normalize-space(/JSPRoot/CURRENT_CATEGORY) > ='COMPANY_LOGO')"> > <xsl:attribute name="enctype"> > <xsl:text>multipart/form-data</xsl:text> > </xsl:attribute> > </xsl:if> > > <xsl:attribute name="action"><xsl:value-of > select="normalize-space(/JSPRoot/AGENT_CONSOLE_URL)"/>profiler > s/agent/jsp/agentProfiler.jsp?currentCategory=<xsl:value-of > select="normalize-space(/JSPRoot/URL_ENCODED_CURRENT_CATEGORY) > "/>&listingID=<xsl:value-of > select="/JSPRoot/listing/ID"/>&editID=<xsl:value-of > select="normalize-space(/JSPRoot/EDIT_ID)"/></xsl:attribute> > > <table width="97%" align="left"> > <tr> > <td width="180"><img src="/common/images/spacer.gif" > width="180" height="1"/></td> > <td width="100%" valign="top">&error; > <xsl:apply-templates select="AgentDescriptor/Agent"/> > <div class="footercaption" align="center"> > Items marked with an <span class="navhighlight">*</span> > are required fields. > </div> > </td> > </tr> > </table> > <!--Left hand side--> > &nav; > &help; > &navButtons; > > <script language="Javascript" > type="text/javascript"><xsl:attribute name="src"><xsl:value-of > select="normalize-space(/JSPRoot/AGENT_CONSOLE_URL)"/>profiler > s/common/javascript/static_div.js</xsl:attribute></script> > </form> > </body> > </html> > </xsl:template> > > <xsl:template match="AgentDescriptor/Agent"> > <xsl:variable name="current_category" > select="normalize-space(/JSPRoot/CURRENT_CATEGORY)"/> > <xsl:for-each select="Category[@value=$current_category]/Group"> > <table width="100%" align="center" cellpadding="0" > cellspacing="4" bgcolor="#FFFFFF" class="tableborder"> > <tr><td> > <table width="100%" cellpadding="4" cellspacing="1" > border="0" bgcolor="#FFFFFF"> > <tr>&categorytitle;</tr> > <xsl:for-each > select="Field"><tr>&textfield;&textarea;&checkbox;&radio;&sele > ct;&submit;&file;&help_popup;</tr> > </xsl:for-each> > </table></td></tr> > > <xsl:if test= "normalize-space(/JSPRoot/CURRENT_CATEGORY) = > 'PERSONAL_PHOTO'">&personalPhoto;</xsl:if> > <xsl:if test= "normalize-space(/JSPRoot/CURRENT_CATEGORY) = > 'COMPANY_LOGO'">&companyLogo;</xsl:if> > > </table><br/> > > </xsl:for-each> > </xsl:template> > </xsl:stylesheet> > > On Wed, 2002-08-28 at 05:54, Trevor Nash wrote: > > >That would be a good guess, but I'm not doing it > programatically. I'm > > >using COCOON to do the processing, passing in the XSL and > the XML from a > > >JSP. > > > > > >Any other ideas? > > > > Then it is possible the JSP is wrong - perhaps sometimes > you generate > > a faulty XML or XSL from that. Is there some way you can > look at the > > XML and XSL to check it is what you think it is? > > > > Trevor > > -- > > Traditional training & distance learning, > > Consultancy by email > > > > Melvaig Software Engineering Limited > > voice: +44 (0) 1445 771 271 > > email: tcn@xxxxxxxxxxxxx > > > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list > > XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list --- Incoming mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 --- Outgoing mail is certified Virus Free. Checked by AVG anti-virus system (http://www.grisoft.com). Version: 6.0.381 / Virus Database: 214 - Release Date: 02/08/2002 XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] SAXParseException, Yago Alvarado | Thread | [xsl] using xsl:with-param in apply, Niki Dinsey |
RE: [xsl] Saxon vs. Xalan - output , Andrew Welch | Date | Re: [xsl] SAXParseException, Manish Shah |
Month |