Subject: Re: [xsl] 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 |
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] 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 |
---|
|
<- Previous | Index | Next -> |
---|---|---|
[xsl] xsl:value-of select : how to , Judith Rog | Thread | Re: [xsl] xsl:value-of select : how, David Carlisle |
[xsl] xsl:value-of select : how to , Judith Rog | Date | [xsl] [Q] for-each formatting probl, hgadm |
Month |