Re: Transform for LQI

Felix

Oddly it does add "xmlns:its" to the standoff in the script element but 
not to the span elements. Here's what I have:

        <xsl:template match="//xliff:trans-unit">
                <p>
                        <span>
                                <xsl:attribute name="
its-loc-quality-issues-ref">
                                        <xsl:text>#lq</xsl:text><
xsl:value-of select="@id"/>
                                </xsl:attribute>
                                <xsl:attribute name="its">
http://www.w3.org/2005/11/its</xsl:attribute>
                                <xsl:value-of select="xliff:target"/>
                        </span>
                </p>
        </xsl:template>

Phil.





From:   Felix Sasaki <fsasaki@w3.org>
To:     Phil Ritchie <philr@vistatec.ie>, 
Cc:     public-multilingualweb-lt@w3.org
Date:   07/03/2013 10:01
Subject:        Re: Transform for LQI



Hi Phil,

if I understand the problem correctly, all you need is 
"exclude-result-prefixes" at the root of the stylesheet, e.g.

<xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:its="http://www.w3.org/2005/11/its" exclude-result-prefixes="its"  
version="2.0">

Best,

Felix

Am 06.03.13 17:50, schrieb Phil Ritchie:
I'm trying to write an xsl transform for an xliff to html5 with LQI. 

I have most of it done but cannot get the its xmlns to write out for the 
<span> e.g. 

<p><span its-loc-quality-issues-ref="#lq2" 
its-provenance-records-ref="prov3" xmlns:its="
http://www.w3.org/2005/11/its">Gli accessori di una telecamera rivestono 
la stessa importanza della stessa telecamera nella riuscita delle 
riprese.</span></p> 

Anyone know how I do that in xslt 2? 

Phil.


************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail.
www.vistatec.com
************************************************************


************************************************************
This email and any files transmitted with it are confidential and
intended solely for the use of the individual or entity to whom they
are addressed. If you have received this email in error please notify
the sender immediately by e-mail.

www.vistatec.com
************************************************************

Received on Thursday, 7 March 2013 10:28:46 UTC