Subject: Re: [xsl] Simple style sheet erroring on Dita fle From: "Michael Kay mike@xxxxxxxxxxxx" <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> Date: Wed, 28 Sep 2022 21:20:42 -0000 |
It's got a reference to a file called "reference.dtd" so that file must exist in the same directory as the XML. Michael Kay Saxonica > On 28 Sep 2022, at 22:03, russurquhart1@xxxxxxxxxxx russurquhart1@xxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > Ibve attached the zip file. > > > > > Sent from the all new AOL app for iOS <https://apps.apple.com/us/app/aol-news-email-weather-video/id646100661> > > On Wednesday, September 28, 2022, 3:57 PM, Michael Kay mike@xxxxxxxxxxxx <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx> wrote: > > What form does the DTD reference take? > > Michael Kay > Saxonica > >> On 28 Sep 2022, at 21:37, russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx> russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: >> >> As it is a DITA file and points to that dtd I have to download that dtd locally? >> >> >> Sent from the all new AOL app for iOS <https://apps.apple.com/us/app/aol-news-email-weather-video/id646100661> >> >> On Wednesday, September 28, 2022, 3:33 PM, Michael Kay mike@xxxxxxxxxxxx <mailto:mike@xxxxxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: >> >> There's nothing wrong with the stylesheet, it's obviously a problem with the source document. The error comes from the XML parser, not from the XSLT processor. Does the XML file refer to other resources such as a DTD or external entities? >> >> Michael Kay >> Saxonica >> >>> On 28 Sep 2022, at 21:13, russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx> russurquhart1@xxxxxxxxxxx <mailto:russurquhart1@xxxxxxxxxxx> <xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx <mailto:xsl-list-service@xxxxxxxxxxxxxxxxxxxxxx>> wrote: >>> >>> Hi All, >>> >>> It's been awhile but I have the opportunity to get back to xslt land. >>> >>> I have a small xslt: >>> >>> <xsl:stylesheet version="1.0" >>> xmlns:xsl="http://www.w3.org/1999/XSL/Transform <http://www.w3.org/1999/XSL/Transform>"> >>> <xsl:output method="xml" version="1.0" encoding="UTF-8" indent="no"/> >>> >>> <!-- identity transform --> >>> <xsl:template match="@*|node()"> >>> <xsl:copy> >>> <xsl:apply-templates select="@*|node()"/> >>> </xsl:copy> >>> </xsl:template> >>> >>> <xsl:template match="entry/p[1]"> >>> <xsl:apply-templates/> >>> </xsl:template> >>> >>> </xsl:stylesheet> >>> >>> That removes the first <p> element in an entry element. >>> >>> When i try this on a DITA xml file I get: >>> >>> russurquhart_boomi ~/Downloads/SaxonHE11-4J $ java -jar saxon-he-11.4.jar -t -s:Cloud_Object.xml -xsl:rem_para.xsl -o:Cloud_Object_Out.xml >>> SaxonJ-HE 11.4 from Saxonica >>> Java version 18.0.2.1 >>> Stylesheet compilation time: 173.737833ms >>> Processing file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml >>> Using parser com.sun.org.apache.xerces.internal.jaxp.SAXParserImpl$JAXPSAXParser >>> Building tree for file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml using class net.sf.saxon.tree.tiny.TinyBuilder >>> I/O error reported by XML parser processing file:/Users/russurquhart_boomi/Downloads/SaxonHE11-4J/Cloud_Object.xml >>> >>> The DITA file is kind of long but I can attach it if needed. I was hoping someone could provide some insight on this? >>> >>> Thanks, >>> >>> Russ >>> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> >>> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by email <>) >> >> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> >> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1358440> (by email <>) >> XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> >> EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by email <>) > > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/1358440> (by email <applewebdata://C9FF69F1-5E02-456C-BCA4-FBC5782C3233>) > XSL-List info and archive <http://www.mulberrytech.com/xsl/xsl-list> > EasyUnsubscribe <http://lists.mulberrytech.com/unsub/xsl-list/293509> (by email <>) > <Cloud_Object.xml>
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Simple style sheet errori, russurquhart1@xxxxxx | Thread | Re: [xsl] Simple style sheet errori, russurquhart1@xxxxxx |
Re: [xsl] Simple style sheet errori, russurquhart1@xxxxxx | Date | Re: [xsl] Simple style sheet errori, russurquhart1@xxxxxx |
Month |