Subject: RE: Manipulating XSL element From: "FINLEY, Mike" <Mike.FINLEY@xxxxxxxxxx> Date: Mon, 14 Aug 2000 13:19:05 +0100 |
If I understand correctly what you are trying to do, and if I understand XSL correctly, the short answer is you can't. Loosely speaking, XSL can create an element, but <tag> and </tag> are each only half an element. You need to rethink how you are creating your output so that you create the whole element at the same time. mike -----Original Message----- From: ciaran byrne [mailto:ciaran.byrne@xxxxxxx] Sent: Monday, August 14, 2000 9:57 AM To: XML; XSL-List Subject: Manipulating XSL element Hi all, Is there any way to create an XML element without it being created by my XSL as an empty tag i.e. <element/> The reason being is that the content that is manipulated by my XSL into an element already has a '/' to indicate whether it will be a start/end or empty tag, such as: empty: <tag/> start: <tag> end: </tag> So, when my content, complete with '/' gets passed through the XSL and I create an element I get empty: <tag//> start: <tag/> end: </tag/> Is there any way I can get my XSL to look at the tag and say "hey let's treat this tag as a start tag as such so that I don't put in the '/' ? " which would give me... empty: <tag/> start: <tag> end: </tag> Any ideas on a wet Monday morning ?? Ciaran. XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list ___________________________________________________________________________ This email is confidential and intended solely for the use of the individual to whom it is addressed. Any views or opinions presented are solely those of the author and do not necessarily represent those of Sema Group. If you are not the intended recipient, be advised that you have received this email in error and that any use, dissemination, forwarding, printing, or copying of this email is strictly prohibited. If you have received this email in error please notify the Sema Group Helpdesk by telephone on +44 (0) 121 627 5600. ___________________________________________________________________________ XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: Manipulating XSL element, Jeni Tennison | Thread | Embedding HTML Doc into XSL or XML, Sunitha |
XSL include problem, Arthur Yeung | Date | RE: Embedding stylesheet PI, Chris Bayes |
Month |