[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Re: [docbook-apps] docbook-website and jsp
Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> writes: > Arnaud Vandyck <arnaud.vandyck@ulg.ac.be> writes: > >> I'd like to have all my jsp pages processed from the xml files (by the >> docbook-website xsl files)... > > I've been able to nearly produce jsp page with docbook by changing the > ouput type from html to xhtml. > > But I need to remove the DOCTYPE line and to exchange the <html> and the > <jsp:root> tags at the beginning and at the end because it seems > autolayout don't like it when <webpage> is not the root tag. I did add an horrible hack to get the jsp's usable: this is how to call the script after the pages are generated from the build.xml file: <exec dir="${webapp}" executable="${src}/jspfix.sh"/> And here is the jspfix.sh script: ----><---- #! /bin/sh for jspfile in $(find -name '*.jsp') do NBLIGNES=$(( $(wc -l $jspfile | cut -d ' ' -f 1) - 2 )) echo '<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="1.2">' \ > temp.jsp tail -n $NBLIGNES $jspfile >> temp.jsp echo '</jsp:root>' >> temp.jsp mv temp.jsp $jspfile done ----><---- If someone has a better idea... Cheers, -- Arnaud
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]