← Prev in month ← Prev in thread

Declaring Namespaces

From
Lillian Sullam <>
Date
2008-11-19T19:19:56+00:00
ID
Thread
Declaring Namespaces
Hello,

I am trying to do an XML to XML translation.  I am using XSLT 1.0 and saxon 6.5.5.

Here is my input file:

<?xml version="1.0" encoding="UTF-8"?>

<sect1 xmlns="http://docbook.org/ns/docbook" xmlns:xl="http://www.w3.org/1999/xlink">
   <sect1 xml:id="class-com.bruxton.sidx.acquisition"

          xreflabel="com.bruxton.sidx.Acquisition">
      <title>Class Acquisition</title>
      <indexterm>
         <primary>Acquisition</primary>
      </indexterm>

      <indexterm>
         <primary>Classes</primary>
         <secondary>Acquisition</secondary>
      </indexterm>
      <para>Responsible for managing the acquisition. Each instance of <literal>

            <link linkend="class-com.bruxton.sidx.camera">Camera</link>
         </literal> owns one instance of the class. The user of SIDX should not create the object. It should be obtained by using getAcquisition function of <literal>

            <link linkend="class-com.bruxton.sidx.camera">Camera</link>
         </literal> object.</para>
      <sect2>
        <title>Synopsis</title>
        <classsynopsis class="class" language="java">

Here is my XSLT 1.0 file:

<?xml version="1.0"?>
<xsl:stylesheet
    xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns="http://docbook.org/ns/docbook"

    xmlns:xl="http://www.w3.org/1999/xlink"
    version="1.0">

<xsl:output method="xml" version="1.0" indent="yes"/>

    
<!-- Class -->
<xsl:template match="sect1/sect1[@*]">
    <xsl:call-template name="id_sect1"/>
</xsl:template>

<!-- Synopsis -->
<xsl:template match="sect2">

  <xsl:copy>
    <xsl:copy-of select="@*"/>
    <xsl:apply-templates/>
  </xsl:copy>
</xsl:template>

The result is untagged, plain text.  What am I missing?  Any help would be greatly appreciated.  Thanks!

Lillian
← Prev in month ← Prev in thread