[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message]

Re: XML/XHTML fragment to text

Subject: Re: XML/XHTML fragment to text
From: christoph.naber@xxxxxxxxxxxxxxxxxxx
Date: Fri, 10 Aug 2007 09:20:01 +0200
Re:  XML/XHTML fragment to text
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.

Current Thread

PURCHASE STYLUS STUDIO ONLINE TODAY!

Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced!

Buy Stylus Studio Now

Download The World's Best XML IDE!

Accelerate XML development with our award-winning XML IDE - Download a free trial today!

Don't miss another message! Subscribe to this list today.
Email
First Name
Last Name
Company
Subscribe in XML format
RSS 2.0
Atom 0.3
Site Map | Privacy Policy | Terms of Use | Trademarks
Free Stylus Studio XML Training:
W3C Member
Stylus Studio® and DataDirect XQuery ™are products from DataDirect Technologies, is a registered trademark of Progress Software Corporation, in the U.S. and other countries. © 2004-2013 All Rights Reserved.