|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: ACCESSING SPECIFIC CDATA FIELD
Thanks Jon and friends, for your explanation about CDATA nodes. Well, I tried to use your idea "<xsl:value-of select="text()[1]" />" to access the text inside the node <etp id="200"> (see the code bellow), and spected this return: "Trying accessing only this", but returned empty to me. When I put the prefix "." return to me "Trying accessing only this" + "blablablablabla" + "blablablablabla", with your descedents. Is it necessary to use the node to separate the texts inside the node? Well, refferering your explanation I think not. Are there another choice? My code are parsed using Javascript and open it at Firefox. Thank again. Best regards ----- Original Message ----- From: "Jon Gorman" <jonathan.gorman@xxxxxxxxx> To: <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Sent: Tuesday, December 13, 2005 12:17 PM Subject: Re: ACCESSING SPECIFIC CDATA FIELD On 12/13/05, viniciuscamara@xxxxxxxxxxxx <viniciuscamara@xxxxxxxxxxxx> wrote: Hello Fellows, I've one XML and trying to access the specific CDATA on XML but when do this, I capture all CDATAs nodes. See the XML and XSL code bellow:
And the answer is yes, of course. Just select the text nodes and apply-templates or get their value.
Is it necessary to create a node to CDATA ? No, since it'll be turned into just escaped text via the parser. As far as the processor is concerned, it's just a typical text node. Jon Gorman _______________________________________________________ Yahoo! doce lar. Faga do Yahoo! sua homepage. http://br.yahoo.com/homepageset.html
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|

Cart








