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

Re: xsl:value-of select : how to make some tags printe

Subject: Re: xsl:value-of select : how to make some tags printed and othersnot
From: andrew.curry@xxxxxxxxxxxx
Date: Tue, 7 Oct 2003 12:49:08 +0100
judith rog
I think you can use a normal matches statement calling a template and then
use xsl:copy-of to keep the subs.

PA Sport RnD

Andrew Curry
Software Developer

Telephone: 01430 455545
Website:        http://www.pa.press.net

PA News Limited:
Bridgegate, Howden, East Yorkshire, DN14 7AE

Registered Office:
PA News Limited, 292 Vauxhall Bridge Road, London SW1V 1AE. Registered in
England No. 3891053


----- Original Message ----- 
From: "Judith Rog" <Judith.Rog@xxxxx>
To: <XSL-List@xxxxxxxxxxxxxxxxxxxxxx>
Sent: Tuesday, October 07, 2003 12:46 PM
Subject:  xsl:value-of select : how to make some tags printed and
othersnot


> Hi,
> Could anyone help me with the following?
>
> Suppose I have the following XML:
>
> <book>
>    <title>My first book</title>
>    <chapter>
>      <nr>1</nr>
>      <text> This is the <sw>content</sw> of my first book, where
> <sub>I</sub> would like to leave in the sub-tag, but leave out the
> sw-tag.</text>
>    </chapter>
> </book>
>
> Is it possible to make an xsl statement that would print the content of
> the <text> tag and all sub tags (<xsl:value of select="text"/>) but then
> somehow leave the html formatting tags <sub> in the output? So:
> This is the content of my first book, where <sub>I</sub> would like to
> leave in the sub-tag, but leave out the sw-tag.
> instead of:
> This is the content of my first book, where I would like to leave in
> the sub-tag, but leave out the sw-tag.
>
> Thanks for your help.
> Judith
>
>
>  XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
>


 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


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.