Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 479 Details for
Bug 1428
A Lyx to Gentoo Guide XML bridge
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
lyx-to-gentoo.xslt
lyx-to-gentoo.xslt (text/plain), 1.95 KB, created by
Matthew Kennedy
on 2002-03-31 04:11:14 UTC
(
hide
)
Description:
lyx-to-gentoo.xslt
Filename:
MIME Type:
Creator:
Matthew Kennedy
Created:
2002-03-31 04:11:14 UTC
Size:
1.95 KB
patch
obsolete
><xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> > > <xsl:template match="/"> > <xsl:apply-templates select="CHAPTER"/> > </xsl:template> > > <!-- The DocBook SGML generated by Lyx doesn't include meta > information for author, mail, abstract, version, date even though > DocBook supports those constructs. Thus for this template we just > fill in the structure and leave the details blank. > > There's nothing too wrong with hardcoding details for those > elements here though. > --> > <xsl:template match="CHAPTER"> > <guide> > <author title=""> > <mail link=""></mail> > </author> > <abstract></abstract> > <version></version> > <date></date> > <xsl:apply-templates/> > </guide> > </xsl:template> > > <xsl:template match="TITLE"> > <title><xsl:value-of select="."/></title> > </xsl:template> > > <xsl:template match="SECT1"> > <chapter> > <xsl:apply-templates/> > </chapter> > </xsl:template> > > <xsl:template match="SECT2"> > <section> > <xsl:apply-templates select="TITLE"/> > <body> > <xsl:apply-templates select="PARA|PROGRAMLISTING|SECT3"/> > </body> > </section> > </xsl:template> > > <xsl:template match="PARA"> > <p> > <xsl:apply-templates /> > </p> > </xsl:template> > > <xsl:template match="ULINK"> > <uri link="{@URL}"><xsl:value-of select="."/></uri> > </xsl:template> > > <xsl:template match="PROGRAMLISTING"> > <pre><xsl:value-of select="."/></pre> > </xsl:template> > > <!-- There is no equivalent for SECT3 in Gentoo'sGuide DTD. We can > try to simulate it though using other Gentoo Guide DTD elements, > but this is probably poor form since it makes an assumption about > Gentoo Guide XML transforms to presentation. > > It would be cool if a section's body element could contain a > section element in a recursive manner, but Gentoo Guide XML DTD > 2.1 does not provide for this. > --> > <xsl:template match="SECT3"> > <p><i><xsl:value-of select="TITLE"/></i></p> > <xsl:apply-templates select="PARA|PROGRAMLISTING"/> > </xsl:template> > ></xsl:stylesheet>
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 1428
:
477
|
478
| 479 |
480
|
481
|
482