OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.


Help: OASIS Mailing Lists Help | MarkMail Help

docbook-apps message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]

Subject: help with a simple customization template

hi, I have looked at this and looked at it and still cannot see what I'm doing wrong. 
I would appreciate another set of eyes to show me the error.Trying to match on an 'inlineequation' to produce an 'img' element, but getting a 'span' instead. I've cut it down to this example:

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
  version="1.0" exclude-result-prefixes="d">

  <xsl:include href="" />

  <xsl:template match="d:inlineequation/d:inlinemediaobject[@remap='math']/d:imageobject/d:imagedata">
    <xsl:element name="img">
      <xsl:attribute name="class">math</xsl:attribute>

This DocBook 5 XML:
<article xmlns="http://docbook.org/ns/docbook"
 <section remap="section" xml:id="a0000000002">
   For example,
  <inlinemediaobject remap="math">
    <imageobject role="math_images">
      <imagedata role="math" />
    <textobject role="tex">
      <phrase>$\alpha +\beta {}x+\varepsilon $</phrase>

And I get this result, which means that my template is not getting used, right? Can you see what I'm doing wrong? I omit the HTML header and intro material:
<div class="section">
      <div class="titlepage">
            <h2 class="title" style="clear: both">
              <a name="a0000000002"></a>
      For example,
      <span class="inlinemediaobject"></span>

thanks in advance,

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]