Hi Mathieu,
If this is about olinking, then it is relevant to this list. I didn't get that from the original mail since it didn't mention "olink", but "targetset" should have been a sufficient clue.

I've thought about creating some kind of stylesheet to generate an olink targetset structure, but I've never been able to figure out what it should do, since everyone's requirements would be different.

In your case, your XML example shows the output structure, but generating a targetset structure requires knowledge of the targetdoc values and the locations of the target data files (target.db) to be integrated into the targetset structure. Is that information in this XML example?

I'm also not clear about what you meant when you said:

"where common directory need to contains multiple files, so I cannot
simply process one string at a time, but would need some kind of hash
table to find out redundancies."

Can you provide a bit more detail?

Bob Stayton
Sagehill Enterprises
[email protected]


----- Original Message ----- From: "Mathieu Malaterre" <[email protected]>
To: "Dave Pawson" <[email protected]>
Cc: <[email protected]>
Sent: Thursday, July 08, 2010 8:41 AM
Subject: Re: [docbook-apps] Generating targetset


On Thu, Jul 8, 2010 at 4:59 PM, Dave Pawson <[email protected]> wrote:
On Thu, 8 Jul 2010 11:21:41 +0200
Mathieu Malaterre <[email protected]> wrote:

Hi there,

I am wondering if anyone had to deal with this issue before. My
build system is generating a list of filenames to be installed like
that:

<files>
<file name="share/doc/Common1/Doc1/index.html"/>
<file name="share/doc/Common1/Doc2/index.html"/>
<file name="share/doc/Common2/Doc1/index.html"/>
<file name="share/doc/Common3/Doc1/index.html"/>
<file name="share/doc/Common3/Doc2/index.html"/>
</files>

I would need to convert that input XML into the targetset structure,


As I said, nothing to do with docbook, why are you asking here?
Aren't the xsl-list answers enough for you?

For the *exact* same reason there is a xmldepend.xsl as shipped in docbook:

http://docbook.svn.sourceforge.net/viewvc/docbook/trunk/contrib/xsl/xmldepend/

I believe there should be "targetset_gen.xsl" for ease of integration
of docbook with your build system.

This should have never been a question in XSL mailing list. BTW
docbook 4.5 only requires XSL 1.0, one cannot make it a requirement to
use XSL 2.0 just to be able to generate targetset/olinks files.

2cts
--
Mathieu

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]




---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to