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

Re: Selecting unparsed text from inside a tag

Subject: Re: Selecting unparsed text from inside a tag
From: David Carlisle <davidc@xxxxxxxxx>
Date: Tue, 25 Mar 2008 16:47:55 GMT
Re:  Selecting unparsed text from inside a tag
> I've used xsl:sequence instead of xsl:value-of for this type of mixed
> content. Are there any issues with this approach that will haunt me
> later?


your message doesn't say what the approach is (other than using sequence
instead of value-of) the subject line gives some clues, but appears
confused.

"Selecting unparsed text from inside a tag"

XSLT has no access to the tags in a source file, assuming you mean
element here the content is always parsed.

The only way of getting text that hasn't been parsed by an XML parser
into XSLT is with the unparsed-text() function, but that never generates
mixed content, it just returns a string, using xsl:value-of or
xsl:sequence on the result of unparsed-text()  makes no difference in
most contexts. If you use xsl:value-of, it generates a text node
directly, if you use xsl:sequence it generates a string, but if that
string is being copied to the result tree, it is implictly wrapped in a
text node.

David (confused:-)

________________________________________________________________________
The Numerical Algorithms Group Ltd is a company registered in England
and Wales with company number 1249803. The registered office is:
Wilkinson House, Jordan Hill Road, Oxford OX2 8DR, United Kingdom.

This e-mail has been scanned for all viruses by Star. The service is
powered by MessageLabs. 
________________________________________________________________________

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.