This is the mail archive of the docbook-apps@lists.oasis-open.org mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [docbook-apps] patch for xsl/templates/titlepage.xsl


Thanks for the patch, but I'm not clear on what
this is fixing.  There have been several namespace
problems reported and fixed, so I'm not sure which
one you are referring to.  Was this a SourceForge
bug report, or a posting in the mailing list?

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com


On Wed, Nov 12, 2003 at 02:04:17AM +0100, Kai Schröder wrote:
> Hello from Berlin (Germany).
> 
> I hope this is the right place for posting patches for docbook-xsl (if not,
> please tell me). Attached patch will fix the reported namespace problems
> with the fo titlepage template. Please test and commit to CVS.
> 
> Regards,
> Kai
> 
> Index: template/titlepage.xsl
> ===================================================================
> RCS file: /cvsroot/docbook/xsl/template/titlepage.xsl,v
> retrieving revision 1.4
> diff -u -r1.4 titlepage.xsl
> --- template/titlepage.xsl	20 Jan 2003 21:44:26 -0000	1.4
> +++ template/titlepage.xsl	11 Nov 2003 22:58:22 -0000
> @@ -310,11 +310,20 @@
>            </xsl:attribute>
>            <xsl:for-each select="@*">
>              <xsl:if test="not(starts-with(namespace-uri(.),
> -                                'http://nwalsh.com/docbook/xsl/
> template/1.0'))">
> -              <xsl:attribute name="{name(.)}" namespace="{namespace-uri(.)}">
> -                <xsl:value-of select="."/>
> -              </xsl:attribute>
> -            </xsl:if>
> +                                  'http://nwalsh.com/docbook/xsl/
> template/1.0'))">
> +                <xsl:choose>
> +                  <xsl:when test="namespace-uri(.) != ''">
> +                    <xsl:attribute name="{name(.)}" 
> namespace="{namespace-uri(.)}">
> +                      <xsl:value-of select="."/>
> +                    </xsl:attribute>
> +                  </xsl:when>
> +                  <xsl:otherwise>
> +                    <xsl:attribute name="{name(.)}">
> +                      <xsl:value-of select="."/>
> +                    </xsl:attribute>
> +                  </xsl:otherwise>
> +                </xsl:choose>
> +              </xsl:if>
>            </xsl:for-each>
>            <xsl:text>&#xA;</xsl:text>
>  
> @@ -798,9 +807,18 @@
>              <xsl:for-each select="@*">
>                <xsl:if test="not(starts-with(namespace-uri(.),
>                                    'http://nwalsh.com/docbook/xsl/
> template/1.0'))">
> -                <xsl:attribute name="{name(.)}" 
> namespace="{namespace-uri(.)}">
> -                  <xsl:value-of select="."/>
> -                </xsl:attribute>
> +                <xsl:choose>
> +                  <xsl:when test="namespace-uri(.) != ''">
> +                    <xsl:attribute name="{name(.)}" 
> namespace="{namespace-uri(.)}">
> +                      <xsl:value-of select="."/>
> +                    </xsl:attribute>
> +                  </xsl:when>
> +                  <xsl:otherwise>
> +                    <xsl:attribute name="{name(.)}">
> +                      <xsl:value-of select="."/>
> +                    </xsl:attribute>
> +                  </xsl:otherwise>
> +                </xsl:choose>
>                </xsl:if>
>              </xsl:for-each>
>              <xsl:text>&#xA;</xsl:text>
> 
> 
> To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.
> 
> 

-- 

Bob Stayton                                 400 Encinal Street
Publications Architect                      Santa Cruz, CA  95060
Technical Publications                      voice: (831) 427-7796
The SCO Group                               fax:   (831) 429-1887
                                            email: bobs@sco.com

To unsubscribe from this list, send a post to docbook-apps-unsubscribe@lists.oasis-open.org, or visit http://www.oasis-open.org/mlmanage/.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]