[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Flummoxed with Filtering
Hi all,
I'm trying to use filtering transformations and put together some code based on a boilerplate I found in Jeni Tennison's book. I figure I'm missing something fundamental because I'm getting this error message: >XSLT error: (StylesheetHandler) xsl:copy-of not allowed inside a stylesheet. >(../xsl/qhelp.xsl, line 11, column 28) For this stylesheet: ><?xml version="1.0"?> ><xsl:stylesheet version="1.0" > xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> ><xsl:strip-space elements="*" /> > ><xsl:template match="@*|node()"> > <xsl:apply-templates /> ></xsl:template> > ><xsl:template match="summ | //Synopsis" /> > <xsl:copy-of select="." /> ></xsl:template> used on this source (XML) example: ><?xml version="1.0" standalone='yes'?> ><!-- Start of need2mput conversion --> ><Tool name="need2mput" > date='"June 20, 2002"' > ver='"1.0"'> > <Name> > <summ>Determine which files you have modified </summ> > </Name> > <Synopsis> > <c> <o>[ -v ] [ <var>file...</var> | <var>dir...</var> ] </o></c> > </Synopsis> > <Description> > <p>The <tt>need2mput</tt> command determines which files you have > modified in your sandbox and therefore may want to check in under > source control. </p></Description> > <Options> > <Definitions> > <dt><tt>-v</tt></dt> > <df>verbose mode (for debugging) </df> > </Definitions> > </Options> > <Examples> > <ex>need2mput bat/share/bin/need2mput</ex> > </Examples> ></Tool> My goal is to simply yank out what's in between the <summ></summ> and <c></c> tags. Thanks for any help, --gk
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|