|
[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] BOUNCE xsl-list@lists.mulberrytech.com: Admin requ
From Kurt.Devlin@xxxxxxxxxxxxx Wed Jan 10 11:52:57 2001Received: from electabuzz.westgroup.com (electabuzz.westgroup.com [163.231.238.98]) by biglist.com (8.8.8/8.8.5/BL-2) with ESMTP id LAA24426 for <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>; Wed, 10 Jan 2001 11:52:57 -0500 (EST) Received: from electabuzz.westgroup.com (localhost.localdomain [127.0.0.1]) by electabuzz.westgroup.com (8.9.3/8.9.3) with ESMTP id KAA03661 for <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>; Wed, 10 Jan 2001 10:52:26 -0600 Received: from elk.int.westgroup.com (elk.int.westgroup.com [163.231.101.86]) by electabuzz.westgroup.com (8.9.3/8.9.3) with ESMTP id KAA03651 for <xsl-list@xxxxxxxxxxxxxxxxxxxxxx>; Wed, 10 Jan 2001 10:52:26 -0600 Received: by elk.int.westgroup.com with Internet Mail Service (5.5.2653.19) id <CTKFDHYY>; Wed, 10 Jan 2001 10:52:26 -0600 Message-ID: <B15A0DE524B8D111A26900805F0D6FFE058C1AF8@xxxxxxxxxxxxxxxxxxxxxxxxx> From: "Devlin, Kurt" <Kurt.Devlin@xxxxxxxxxxxxx> To: "Xsl-List (E-mail)" <xsl-list@xxxxxxxxxxxxxxxxxxxxxx> Subject: Remove PCDATA prior to a specified element Date: Wed, 10 Jan 2001 10:52:24 -0600 MIME-Version: 1.0 X-Mailer: Internet Mail Service (5.5.2653.19) Content-Type: text/plain; charset="iso-8859-1" I need to remove some PCDATA prior to a specified element. I am rendering my XML to HTML. In the main section I want all the information shown. In the table of references that gets generated at the end of the document, I want to strip certain elements and the PCDATA that appears directly before that element. Currently, I have templates that ignore the elements that I'm not interested, but I'm not sure how to get to the PCDATA before this element. I have created a simple example of what I want to do below. In this example it would be simple to just look at the elements that I do want, but in my real project there are too many elements that I do want. I really only want to add a couple of templates to handle ignoring the element and its preceding PCDATA. Thanks in advance for any help with this. Regards, Kurt --- Simple Example --- DTD <!ELEMENT book (#PCDATA | title | author | date)* > <!ELEMENT title|author|date (#PCDATA) > XML <book><title>My Book</title>, <author>Me</author>, <date>01-01-01</date></book> HTML (main section) <u>My Book</u>, Me, (01-01-01) HTML (reference section) <u>My Book</u>, Me --- 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
|

Cart








