[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Subject: AW: DOCBOOK-APPS: website structure question
hello, you don't need/should edit autolayout.xml because this file gets generated by transforming the information found in the file 'layout.xml' using the stylesheet 'autolayout.xsl' found in $WEBSITE_ROOT/xsl. that means the only file you need to adjust you website structure is 'layout.xml'. looking at your example i would say your layout.xml file should look like this: ------8<-------------8<--------------8<-----------8<--------- <toc page="i.xml" id="i" filename="index.html"> <title>I - Top Level Directory</title> <tocentry page="t1.xml" id="t1" dir="test1" filename="index.html"> <title>T1 - Test1 Sub Directory</title> </tocentry> <tocentry page="t2.xml" id="t2" dir="test2" filename="index.html"> <title>T2" - Test2 Sub Directory</title> </tocentry> <tocentry page="t3.xml" id="t3" dir="test2/test3" filename="index.html"> <title>T3" - Test3 Sub Directory</title> </tocentry> </toc> ------>8------------->8-------------->8----------->8--------- you were actually refering to the wrong directory by using some kind of absolute link (dir="/foobar/"). AFAIK you should always refere to you documents relative to the path where you have stored your layout.xml file. btw - also have a look at the examples in $WEBSITE_ROOT/example regards daniel s. haischt -- p.s. as a side-note: would it be feasible to add a comment text to the file autolayout.xml like to following: <!-- This file was automatically generated using XSLT. don't edit it by hand because it might get overriden while running the transformation process again. Instead edit the file layout.xml. --> > -----Ursprungliche Nachricht----- > Von: Barath Gabor [mailto:dincsi@elender.hu] > Gesendet: Sonntag, 2. Februar 2003 14:35 > An: docbook-apps@lists.oasis-open.org > Betreff: DOCBOOK-APPS: website structure question > > > Hi, > i have some xml files in a directory structure which > represents the structure of the website. Only one > files per directory. I tried to create a layout > file but the navigaton links went wrong. Here is > the directory structure: > ./i.xml > ./test1/t1.xml > ./test2/t2.xml > ./test2/test3/t3.xml > Please tell me what should i write in layout.xml/autolayout.xml > if i want to transform each file to index.html > in xml's subdirectory. > > my autolayout file: > <?xml version="1.0" encoding="UTF-8"?> > <!DOCTYPE autolayout PUBLIC "-//Norman Walsh//DTD Website Autolayout > V2.4.0//EN" "../dtd/website-2.4.0/autolayout.dtd"> > <autolayout> > <toc page="i.xml" id="i" filename="index.html"> > <title>I</title> > <tocentry page="test1/t1.xml" id="t1" dir="/test1/" filename="index.html"> > <title>T1</title> > </tocentry> > <tocentry page="test2/t2.xml" id="bu" dir="/test2/" filename="index.html"> > <title>T2</title> > <tocentry page="test2/test3/t3.xml" id="t2" dir="/test2/test3/" > filename="index.html"> > <title>T3</title> > </tocentry> > </tocentry> > </toc> > </autolayout> > > Thank you for all hints: > D. > > >
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [Elist Home]
Powered by eList eXpress LLC