Re: Hardening Doc Preview

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sat, 2004-09-04 at 23:36, Charlie wrote:

> Now if the document could be included (as an entity???), so that work
> isn't duplicated, but your document actually contains the same
> instructions, that might have value.

Nice idea.

Exploring it a bit further...

You said you wanted draft mode..
  A customising stylesheet might look like

<xsl:param name="draft.mode" select="'maybe'"></xsl:param>
<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform";
                version="1.0">
  <xsl:import href="
/sgml/nw/docbook/docbook-xsl-1.65.1/html/docbook.xsl"/>

<xsl:param name="draft.mode" select="'yes'"></xsl:param>



<!-- Process the yum material, by inclusion -->
<xsl:template match="processing-instruction('charlie')">
<xsl:copy-of
select="document('http://fedora-docsURL/yumFDC/xxx.xml')//sect1[@id='start']"/>

</xsl:template>

</xsl:stylesheet>

Lets say in your source document you had a pi
<?charlie yum ?>

then add to the stylesheet as shown,

That (untested) should pull in the yum stuff, xml version, starting at
a specific sect1 tag.


Next question, are the xml files available without a cvs pull?
I dont' think they are.

The basics are there though.

Equally, an entity in the XML would do it, but not in such a selective
way.






-- 
Regards DaveP.
XSLT&Docbook  FAQ
http://www.dpawson.co.uk/xsl




[Index of Archives]     [Fedora Users]     [Fedora Desktop]     [Red Hat 9]     [Yosemite News]     [KDE Users]

  Powered by Linux