xsl-list
[Top] [All Lists]

RE: How does one convert an RTF to a string?

2005-06-10 06:04:29
    I have an RTF like this :

    <xsl:variable name="test">
        <root>
            <child attrib="something">value</child>
        </root>
    </xsl:variable>

    Doing xsl:value-of on $test produced "value" whereas I really want
to be able to get the string :

        <root>
            <child attrib="something">value</child>
        </root>
 
    How can I do this? Will I have to write an XML serializer in XSL
or is there an easier way?

You either have to write an XML serializer in XSLT, or you have to write one
as an extension function, or you have to find one that's already been
written in XSLT, or you have to find one that's already been written as an
extension function: such as saxon:serialize(), for example.

Michael Kay
http://www.saxonica.com/



--~------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--~--



<Prev in Thread] Current Thread [Next in Thread>