Home. 
.

transparent

transparent

transparent

Altova Mailing List Archives


Re: Display a node and it's children as html

From: Jay <jayme.conkin@-----.--->
To: NULL
Date: 6/9/2007 3:25:00 PM

On May 1, 7:38 am, Martin Honnen <mahotr...@yahoo.de> wrote:
> Jay wrote:
> > I'm hoping this is an easy question, it's hard to judge when your new
> > to something, but I have an xml file that has html written into one of
> > it's child nodes (Html) and I want to retrieve the value of the node
> > as a string and use my xsl to display it.
> > - <Html>
> >            <p>This is text about the Latest Work-Flow Descriptions.
> > This is text about the Latest Work-Flow
> >                  Descriptions. This is text about the Latest Work-Flow
> > Descriptions. This is text about the Latest
> >                  Work-Flow Descriptions
> >            </p>
> >                  - <ul>
> >                           - <li>
> >                                    <a title="Work-Flow Descriptions"
> >                                        href= "/MyOPB/uploadedFiles/
> > Library/Templates/agenda_4-18-2007.doc"
> >                                        target="_blank">Work-Flow
> > Descriptions</a>
> >                            </li>
>
> So that Html element has child nodes which are HTML elements like p or
> ul and li. In that case using
>
> >                                            <xsl:value-of select ="?????????"/>
>
> xsl:value-of does not help, you need to copy those nodes to the result
> tree so use
>    <xsl:copy-of select="*"/>
> or
>    <xsl:copy-of select="node()"/>
>
> --
>
>         Martin Honnen --- MVP XML
>        http://JavaScript.FAQTs.com/- Hide quoted text -
>
> - Show quoted text -

That's what I ultimately did. Thanks for the info though.



transparent
Print
Mail
Like It
Disclaimer
.

These Archives are provided for informational purposes only and have been generated directly from the Altova mailing list archive system and are comprised of the lists set forth on www.altova.com/list/index.html. Therefore, Altova does not warrant or guarantee the accuracy, reliability, completeness, usefulness, non-infringement of intellectual property rights, or quality of any content on the Altova Mailing List Archive(s), regardless of who originates that content. You expressly understand and agree that you bear all risks associated with using or relying on that content. Altova will not be liable or responsible in any way for any content posted including, but not limited to, any errors or omissions in content, or for any losses or damage of any kind incurred as a result of the use of or reliance on any content. This disclaimer and limitation on liability is in addition to the disclaimers and limitations contained in the Website Terms of Use and elsewhere on the site.

.
.

transparent

transparent