xsl-list
[Top] [All Lists]

Re: [xsl] XML/XHTML fragment to text

2007-08-10 00:20:24
Hello Alain,

give a legacy application (non-XML/XHTML aware)

If your application isn't aware of XML, why don't you feed it with just 
the XML fragment as is? Its already text, so the application won't do 
anything and hand it back to your weblication. I don't see the benefit of 
your transformation.

When I run your stylesheet, output is the same as input. Could you supply 
some desired output?

XML fragment :

<fragment>
  <div>Any XML/XHTML <span style="color:black">elements with attributes 
also</span> or empty tags <br/> and  empty tags with attributes <hr 
style="color:white"/></div>
</fragment>

The Output (done with XSLTPROC):
  <div>Any XML/XHTML <span style="color:black">elements with attributes 
        also</span> or empty tags <br/> and  empty tags with attributes 
<hr style="color:white"/></div>

So my question is : do you think there is a simpler way of fulfilling 
the same function

What function?

BTW: element() won't work for me, I had to take "node()" instead.

Greetings 
Christoph


If you are not the intended addressee, please inform us immediately that you 
have received this e-mail by mistake and delete it. We thank you for your 
support.

--~------------------------------------------------------------------
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>