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

Re: Returning HTML tags from a function not working

Subject: Re: Returning HTML tags from a function not working
From: David Carlisle <davidc@xxxxxxxxx>
Date: Thu, 2 Feb 2006 14:51:40 GMT
returning html tags in xml
Changing a newline to a br is an explict example in the XS:T2 spec.

you want to apply this to text nodes, so

<xsl:template match="text()">
<xsl:analyze-string select="." regex="\n">
    <xsl:value-of select="."/>

together with an identity template to copy the rest of the document.

> All I want to do is output any tags inside the "doc" as they are,
XSLT has no access to the tags in your source document (and can not
directly generate tags in the result). The tags in your source are used
by an XMl parser to produce a node tree that XSLT uses as input, but the
parser does not report what tags were used.

> I understand now that in my code when I pass the "doc" node to my
> function, it doesn't even see the <b> tags.

But the doc element node does have a b element child, and two text node
children, and that's all XSLT needs to know.


This e-mail has been scanned for all viruses by Star. The
service is powered by MessageLabs. For more information on a proactive
anti-virus service working around the clock, around the globe, visit:

Current Thread


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.
First Name
Last Name
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.