Click here to Skip to main content
15,895,011 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionAdding Header an datetime when User prints excel Sheet. Pin
vikram_asv4-Mar-09 9:22
vikram_asv4-Mar-09 9:22 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
Curtis Schlak.4-Mar-09 9:42
Curtis Schlak.4-Mar-09 9:42 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
Ankur19784-Mar-09 13:26
Ankur19784-Mar-09 13:26 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
Curtis Schlak.4-Mar-09 15:08
Curtis Schlak.4-Mar-09 15:08 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
vikram_asv4-Mar-09 17:03
vikram_asv4-Mar-09 17:03 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
vikram_asv4-Mar-09 17:06
vikram_asv4-Mar-09 17:06 
GeneralRe: Adding Header an datetime when User prints excel Sheet. Pin
AndyInUK4-Mar-09 23:28
AndyInUK4-Mar-09 23:28 
QuestionXML/XSL transformation question. Pin
Maximilien4-Mar-09 9:08
Maximilien4-Mar-09 9:08 
Howdy'

I'm generating some XML files with MSXML; The text is all put on one single line;
so I'm trying to transform the document with some XSL "black" magic.

The stylesheet (taken from some google-search):
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
<xsl:output method="xml" indent="yes" />
<xsl:template match="*">
   <xsl:copy>
      <xsl:copy-of select="@*" />
      <xsl:apply-templates />
   </xsl:copy>
</xsl:template>
</xsl:stylesheet>


This works well, except for one minor thing.

For empty "tags", the transformation transform :
<MyTag attribute="value"/>

to
<MyTag attribute="value"></MyTag >


I'm not quite familiar with XSL, and was wondering if there's a way to not create the empty closing tags ?

I hope it makes sens.
Thanks.
Max.

This signature was proudly tested on animals.

AnswerRe: XML/XSL transformation question. Pin
Curtis Schlak.4-Mar-09 9:17
Curtis Schlak.4-Mar-09 9:17 
GeneralRe: XML/XSL transformation question. Pin
Maximilien4-Mar-09 9:29
Maximilien4-Mar-09 9:29 
GeneralRe: XML/XSL transformation question. Pin
Curtis Schlak.4-Mar-09 9:40
Curtis Schlak.4-Mar-09 9:40 
Questioncookies Pin
AndyInUK4-Mar-09 3:59
AndyInUK4-Mar-09 3:59 
AnswerRe: cookies Pin
Curtis Schlak.4-Mar-09 9:20
Curtis Schlak.4-Mar-09 9:20 
GeneralRe: cookies Pin
AndyInUK4-Mar-09 23:35
AndyInUK4-Mar-09 23:35 
GeneralRe: cookies Pin
Curtis Schlak.5-Mar-09 10:59
Curtis Schlak.5-Mar-09 10:59 
QuestionConverting Word ML to XML Pin
Tejabhiram3-Mar-09 21:26
Tejabhiram3-Mar-09 21:26 
AnswerRe: Converting Word ML to XML Pin
Lee Humphries3-Mar-09 21:55
professionalLee Humphries3-Mar-09 21:55 
GeneralRe: Converting Word ML to XML Pin
Tejabhiram3-Mar-09 22:12
Tejabhiram3-Mar-09 22:12 
GeneralRe: Converting Word ML to XML Pin
Lee Humphries3-Mar-09 23:10
professionalLee Humphries3-Mar-09 23:10 
GeneralRe: Converting Word ML to XML Pin
Tejabhiram3-Mar-09 23:34
Tejabhiram3-Mar-09 23:34 
QuestionXML to JSON using XSLT Pin
Nishanthkumar26-Feb-09 19:29
Nishanthkumar26-Feb-09 19:29 
AnswerRe: XML to JSON using XSLT Pin
Curtis Schlak.27-Feb-09 1:33
Curtis Schlak.27-Feb-09 1:33 
QuestionReading XML Schema and schemas located in Includes Pin
ValAkkapeddi26-Feb-09 12:23
ValAkkapeddi26-Feb-09 12:23 
QuestionXML Read and Write in Java Pin
TJS4u25-Feb-09 18:43
TJS4u25-Feb-09 18:43 
AnswerRe: XML Read and Write in Java Pin
led mike26-Feb-09 4:42
led mike26-Feb-09 4:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.