OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: Re: [docbook-apps] Website layout - autolayout Transformation Errors

Hi Raymond,
I can get your example to work when I change the entity declarations to use
relative paths rather than paths that are resolved by catalog entries.  When
catalog resolution of entities is used, I think something is happening
during the loading of foo.xml that prevents it from reading the file
properly.  Oxygen's debugger  says the node count of the stylesheet variable
$page is zero, but it should be 1.  That means the nodeset being tested has
no content, so it also has no @id, which is where the xsl:message test fails
on line 128.

If you can confirm that it works with systemids that are not resolved by the
catalog, then there is something going wrong with the catalog resolution in

The reason it fails using autolayout.xsl  and not when you use chunk.xsl may
be because foo.xml is being loaded with the XSLT document() function, and
perhaps that is where the catalog lookup function is breaking down.  It
seems to me there should be some other message from the parser used by
document()  indicating what is going wrong.

Bob Stayton
Sagehill Enterprises
DocBook Consulting

----- Original Message ----- 
From: "Raymond" <support@bigriverinfotech.com>
To: <docbook-apps@lists.oasis-open.org>
Sent: Thursday, July 07, 2005 1:42 PM
Subject: Re: [docbook-apps] Website layout - autolayout Transformation

>> please post the complete content of foo.xml and foo.ent so we can try it.

<?xml version="1.0" encoding="UTF-8"?>
        <!DOCTYPE webpage PUBLIC "-//Norman Walsh//DTD Website Full
<!ENTITY % sharedEntities SYSTEM
<webpage id="home">
   <para>Hello World</para>
<!-- EOF -->

<?xml version="1.0" encoding="UTF-8"?>
<!-- dependency modules -->
 <!ENTITY % xinclude SYSTEM "file:///_xincludeBase_/xinclude.mod">
 <!-- core defines  -->
 <!ENTITY w3XInclude "http://www.w3.org/2001/XInclude";>
 <!-- misc defines  -->
  <!ENTITY datDesign "04APR2005" >
  <!ENTITY imgApplications "images/applications.png" >
  <!ENTITY imgChecklist "images/checklist.gif">
  <!ENTITY imgDevelopment "images/development.png" >
  <!ENTITY imgBanner "images/banner2.jpg" >
  <!ENTITY imgQuestion "images/question.png" >
  <!ENTITY locCO "Boulder.CO.US" >
  <!ENTITY locMD "Gaithersburg.MD.US" >
<!-- EOF -->

The offending code fragment is
<!ENTITY % sharedEntities SYSTEM

Should this fragment appear in any document with a webpage or layout root,
then error 128 is generated. Note that when using Xalan, error 128 is
generated too, only a definition of "missing ID" is appended. Both saxon and
xalan falsely identify an omittid id as the error.  Again, this does NOT
occur when implementing docbook or chunk 1.68.1 stylesheets validated with a
docbook 4.4 or 4.5 dtd.


To unsubscribe, e-mail: docbook-apps-unsubscribe@lists.oasis-open.org
For additional commands, e-mail: docbook-apps-help@lists.oasis-open.org

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]