1. Shlomi Fish
  2. perl-begin

Commits

Shlomi Fish  committed ca50df4

Progress in the XSLT.

  • Participants
  • Parent commits 46deb32
  • Branches default

Comments (0)

Files changed (1)

File src/tutorials/bad-elements/vered-xml-to-docbook.xslt

View file
  • Ignore whitespace
 <xsl:output method="xml" encoding="UTF-8" indent="yes"
  />
 
-<xsl:template match="/">
-        <xsl:apply-templates select="//vrd:body" />
-</xsl:template>
-
-<xsl:template match="vrd:body">
+<xsl:template match="/vrd:document">
     <article>
         <xsl:attribute name="xml:id">
             <xsl:value-of select="@xml:id" />
         <xsl:attribute name="version">5.0</xsl:attribute>
         <db:info>
             <db:title>
-                <xsl:value-of select="vrd:title" />
+                <xsl:value-of select="vrd:info/vrd:title" />
             </db:title>
         </db:info>
-        <xsl:apply-templates select="vrd:section" />
+        <xsl:apply-templates select="vrd:body/vrd:section" />
     </article>
 </xsl:template>