List Info

Thread: docbook5-xsl & addresses for html




docbook5-xsl & addresses for html
user name
2007-05-21 11:02:20
Hi,

I'm using docBook5-XSL 1.7.2.0 to render our project
addressbook to 
html. I miss the affiliation/address parts of my structure
after the 
transformation to html.

The addressbook itself is organized as a segmented list with
the 
following structure:

<seglistitem>
	<seg>
		<person>
             <personname>
             	<firstname></firstname>
             	<surname></surname>
             </personname>
			<affiliation>
     	    	<org>
         	    	<orgname></orgname>
					<orgdiv></orgdiv>
				</org>
			</affiliation>
			<address>
				<phone></phone>
				<email></email>
			</address>
		</person>
	</seg>
	<seg>project assignment</seg>
</seglistitem>

The parameter segmentedlist.as.table is set to 1. Are there
other 
parameters to set to display at least the phone number?

Thanks
Reinhard


------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


docbook5-xsl & addresses for html
user name
2007-05-21 14:01:37
El Lunes, 21 de Mayo de 2007 18:02, Reinhard Haller
escribió:
> Hi,
>
> I'm using docBook5-XSL 1.7.2.0 to render our project
addressbook to
> html. I miss the affiliation/address parts of my
structure after the
> transformation to html.

From docbook5-xsl-snapshot/html/inline.xsl:

<xsl:template match="d:person">
  <xsl:param name="content">
    <xsl:call-template name="anchor"/>
    <xsl:call-template name="simple.xlink">
      <xsl:with-param name="content">
        <xsl:apply-templates
select="d:personname"/>
      </xsl:with-param>
    </xsl:call-template>
    <xsl:call-template
name="apply-annotations"/>
  </xsl:param>

  <span>
    <xsl:apply-templates select="."
mode="class.attribute"/>
    <xsl:copy-of select="$content"/>
  </span>
</xsl:template>

As you can see, at this moment the stylesheets have support
only for 
personname and annotations. There is no support (yet?) for
the other allowed 
child elements.

Changing <xsl:apply-templates
select="d:personname"/> by a plain 
<xsl:apply-templates/> could work (if you don't use
annotations), but not 
tested.

-- 
Manuel Canales Esparcia
Usuario de LFS nº2886:       http://www.linuxfroms
cratch.org
LFS en castellano: http://www.escomp
oslinux.org/lfs-es http://www.lfs-es.info
TLDP-ES:                           http://es.tldp.org

------------------------------------------------------------
---------
To unsubscribe, e-mail: docbook-apps-unsubscribelists.oasis-open.org
For additional commands, e-mail: docbook-apps-helplists.oasis-open.org


[1-2]

about | contact  Other archives ( Real Estate discussion Medical topics )