This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

XInclude, XSLTProc, and entityref


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?

Jeff Beal
Tools Specialist
ANSYS, Inc.
(724) 514-3150


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]