[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: RE: DOCBOOK-APPS: XInclude, XSLTProc, and entityref
Yes. My command line is: xsltproc --xinclude --output agp.xml --stringparam child-id agp_book file:///D:/Tools/XSL/create_child.xsl file:///D:/epicuser/AISolutions/aisolutions.xml xsltproc --version gives: Using libxml 20430, libxslt 10023 and libexslt 714 xsltproc was compiled against libxml 20428, libxslt 10023 and libexslt 714 libxslt 10023 was compiled against libxml 20428 libexslt 714 was compiled against libxml 20428 Jeff -----Original Message----- From: John Fleck [mailto:jfleck@inkstain.net] Sent: Thursday, January 30, 2003 10:06 AM To: Jeff Beal Cc: DocBook "Mailing List (E-mail) Subject: Re: DOCBOOK-APPS: XInclude, XSLTProc, and entityref On Thu, 2003-01-30 at 07:57, Jeff Beal wrote: > I'm trying to use XSLTProc to "flatten" a file using XInclude, then pass > this file through Saxon to create my online help. I first used just the > xmllint parser to parse the file, and noticed that none of the graphic > entities were declared, so I decided to write an XSLT stylesheet to convert > all entityrefs to filerefs. This stylesheet works perfectly on the > XIncluded files themselves, but it fails to resolve the entityrefs on the > same files when they are XIncluded into a larger document. I end up with a > bunch of fileref="" in my resulting XML file. The weird thing is that all > entityrefs resolve normally when using the DocBook stylesheets. > > My template in question is: > <xsl:template match="@entityref"> > <xsl:attribute name="fileref"> > <xsl:value-of select="unparsed-entity-uri(.)"/> > </xsl:attribute> > </xsl:template> > > Can anybody see what it is that I'm doing wrong? > When you use xsltproc, are you using the --xinclude flag? "--xinclude Process the input document using the Xinclude specification." Cheers, John -- John Fleck jfleck@inkstain.net (h) jfleck@abqjournal.com (w) http://www.inkstain.net http://www.abqjournal.com "Sometimes, a diner is all about the mac and cheese." - Zippy the Pinhead
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC