Re: [xslt] Re: [xml] Iterating through multiple HTML docs
- From: "Christopher R. Maden" <crism maden org>
- To: xslt gnome org
- Subject: Re: [xslt] Re: [xml] Iterating through multiple HTML docs
- Date: Mon, 01 Apr 2002 03:23:49 -0800
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
I wasn't very clear, I guess. There are two separate things going on:
1) The behavior of libxslt concerning relative URIs in <xsl:document> had
puzzled me. The instant serialization explains that. I had a workaround
already, passing the root directory as a parameter to the stylesheet so
that all URIs can be absolute. This wasn't a problem, really just an
observation.
2) There are some things I want to clean up after the XML-to-HTML
conversion. They could be done with extension functions, but that seems
unnecessarily complicated (and not really my core skill set). For
instance, the source documents have references to other documents by an ID
which can be looked up in a control file. It seems easiest to generate an
<a> element in the HTML, and then post-process to locate the proper URIs
for the target documents. There are also some characters which browsers
can't display easily; rather than have a cumbersome template matching every
text() node in the XSLT, it seems easier to iterate over the result in Perl
and do a quick series of s///s.
For these problems, it seems like delaying HTML and <xsl:document> is the
way to go.
Thanks for your feedback.
~Chris
- --
Christopher R. Maden, Principal Consultant, crism consulting
DTDs/schemas - conversion - ebooks - publishing - Web - B2B - training
<URL: http://crism.maden.org/consulting/ >
PGP Fingerprint: BBA6 4085 DED0 E176 D6D4 5DFC AC52 F825 AFEC 58DA
-----BEGIN PGP SIGNATURE-----
Version: PGP Personal Privacy 6.5.8
iQA/AwUBPKhDRaxS+CWv7FjaEQKNVwCdFponC7r4U9N2ODhHErHUCWenUr8An1V5
Bnb9KiSbkNr5u125aDLrFVzb
=/daz
-----END PGP SIGNATURE-----
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]