List Info

Thread: XML/XSL




XML/XSL
user name
2006-09-15 01:51:52
Manuel,
   Do you have a 'no fail' method for detecting a properly

installed/configured XML/XSL env. Once I was setup I forgot
about 
testing the env.

  It is not obvious to the user that they need libxml2,
libxslt, DocBook 
DTD, DocBook XSL Stylesheets and HTMLTidy installed.

   G.

-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
XML/XSL
user name
2006-09-15 18:43:01
El Viernes, 15 de Septiembre de 2006 03:51, George Boudreau
escribió:

>   It is not obvious to the user that they need libxml2,
libxslt, DocBook
> DTD, DocBook XSL Stylesheets and HTMLTidy installed.

For libxml2 >= 2.6.20 , libxslt >= 1.1.14 (xsltproc
--version will show both) 
and tidy (any post 1st September 2004 works)  a check like
the current ones 
for jhalfs dependencies is enough.

For the DTD and XSL the unique way I can think to be sure
that both have the 
correct version and are properly installed is running a
test-case. For that, 
a very simple XML document and XSL stylesheet need be
created (maybe via here 
documents dumped to temp files), running xmllint and
xsltproc on then, 
analyzing the output for errors.

I will try to create that test-cases this weekend while the
box will be busy 
doing new makefile builds.

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
XML/XSL
user name
2006-09-15 19:06:13
On 9/15/06, M.Canales.es <manuellinuxfromscratch.org>
wrote:
>
> For the DTD and XSL the unique way I can think to be
sure that both have the
> correct version and are properly installed is running a
test-case. For that,
> a very simple XML document and XSL stylesheet need be
created (maybe via here
> documents dumped to temp files), running xmllint and
xsltproc on then,
> analyzing the output for errors.

That seems like a good plan. Looks like xsltproc and xmllint
will both
read from stdin if the filename is -. So no need for temp
files. Well,
I guess you need to provide the stylesheet, too.

xsltproc [options] - << "EOF"
...XML...
EOF

--
Dan
-- 
http://linuxfromscratch.org/mailman/listinfo/alfs-discu
ss
FAQ: http://www.linux
fromscratch.org/faq/
Unsubscribe: See the above information page
[1-3]

about | contact  Other archives ( Real Estate discussion Medical topics )