Instance inherits xforms namespaces

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

Instance inherits xforms namespaces

fl.schmitt(ops-users)
Hi,

i've got a problem processing XML documents without namespace declaration. The instances created from those documents "inherit" all the namespaces from the XForms page. Is there a way to keep the instance "clean" of all namespaces or to remove them completely using a XPL pipeline?

Thanks in advance
florian

--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws
Reply | Threaded
Open this post in threaded view
|

Re: Instance inherits xforms namespaces

Steve Lenhart
Florian,

If you are in XPL you can remove namespaces like this ....

    <p:processor name="oxf:xslt">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <xsl:stylesheet version="2.0">
                <xsl:import href="oxf:/oxf/xslt/utils/copy.xsl"/>
               
                <xsl:template match="/">
                    <xsl:copy-of select="." copy-namespaces="no"/>
                </xsl:template>
            </xsl:stylesheet>
        </p:input>
        <p:output name="data" id="stripped-instance"/>
    </p:processor>


Hope this helps.

Steve


Florian Schmitt wrote:
Hi,

i've got a problem processing XML documents without namespace declaration. The instances created from those documents "inherit" all the namespaces from the XForms page. Is there a way to keep the instance "clean" of all namespaces or to remove them completely using a XPL pipeline?

Thanks in advance
florian

-- You receive this message as a subscriber of the [hidden email] mailing list. To unsubscribe: [hidden email] For general help: [hidden email] ObjectWeb mailing lists service home page: http://www.objectweb.org/wws


--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws

slenhart.vcf (299 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: Instance inherits xforms namespaces

fl.schmitt(ops-users)
Hi Steve,

2007/3/29, Steve Lenhart <[hidden email]>:

If you are in XPL you can remove namespaces like this ....

    <p:processor name="oxf:xslt">
        <p:input name="data" href="#instance"/>
        <p:input name="config">
            <xsl:stylesheet version="2.0">
                <xsl:import href="oxf:/oxf/xslt/utils/copy.xsl"/>
               
                <xsl:template match="/">
                    <xsl:copy-of select="." copy-namespaces="no"/>
                </xsl:template>
            </xsl:stylesheet>
        </p:input>
        <p:output name="data" id="stripped-instance"/>
    </p:processor>

thank you for your help, i will try it.
florian
 



--
You receive this message as a subscriber of the [hidden email] mailing list.
To unsubscribe: mailto:[hidden email]
For general help: mailto:[hidden email]?subject=help
ObjectWeb mailing lists service home page: http://www.objectweb.org/wws