Click here to Skip to main content
15,890,825 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionweb application with XML Pin
ashwika4923-Jul-09 1:35
ashwika4923-Jul-09 1:35 
AnswerRe: web application with XML Pin
Muhammad Mazhar23-Jul-09 2:10
Muhammad Mazhar23-Jul-09 2:10 
AnswerRe: web application with XML Pin
Mike Ellison27-Jul-09 2:42
Mike Ellison27-Jul-09 2:42 
QuestionSpecifying unqiueness of an attribute in xsd. Pin
Comp_Users21-Jul-09 10:16
Comp_Users21-Jul-09 10:16 
AnswerRe: Specifying unqiueness of an attribute in xsd. Pin
Stuart Dootson21-Jul-09 11:15
professionalStuart Dootson21-Jul-09 11:15 
GeneralRe: Specifying unqiueness of an attribute in xsd. Pin
Comp_Users21-Jul-09 22:45
Comp_Users21-Jul-09 22:45 
QuestionHow to ignore tags ? Pin
matty2desmara17-Jul-09 5:06
matty2desmara17-Jul-09 5:06 
AnswerRe: How to ignore tags ? Pin
Stuart Dootson17-Jul-09 13:18
professionalStuart Dootson17-Jul-09 13:18 
matty2desmara wrote:
how do i go about disregarding anything with ColName in my xsl ?


I suspect you're running foul of the default behaviour of XSL, which passes through all tags unchanged unless you say otherwise. Add a root element template that just processes what you want, like I've put in here?

<?xml version="1.0"?>
<xsl:stylesheet version = "1.0"
  xmlns:xsl = "http://www.w3.org/1999/XSL/Transform">
  <xsl:output method="text"/>
  <xsl:strip-space elements = "Report"/>
<big>  <xsl:template match="/">
    <xsl:apply-templates select="//Record"/>
  </xsl:template></big>
  <xsl:template match="Record">
    <text>&#xD;</text>
    <xsl:text/><xsl:value-of select="normalize-space(Record)"/><xsl:text/>
    <xsl:value-of select="normalize-space(DateTime)"/>,<xsl:text/>
    <xsl:value-of select="normalize-space(PointName)"/>,<xsl:text/>
    <xsl:value-of select="normalize-space(PointValue)"/>,<xsl:text/>
    <text>&#xD;</text>
    <xsl:text disable-output-escaping = "yes" >
    </xsl:text>
  </xsl:template>
</xsl:stylesheet>


I'm presuming the use of DateTime, PointTime and PointValue in your XSL is a typo?

Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p

QuestionShould I be using XSLT to transform XML to Multiple EDI formats and vice versa? Pin
tig281015-Jul-09 23:57
tig281015-Jul-09 23:57 
AnswerRe: Should I be using XSLT to transform XML to Multiple EDI formats and vice versa? Pin
Stuart Dootson16-Jul-09 0:39
professionalStuart Dootson16-Jul-09 0:39 
GeneralRe: Should I be using XSLT to transform XML to Multiple EDI formats and vice versa? Pin
tig281016-Jul-09 2:55
tig281016-Jul-09 2:55 
QuestionHow to get Microsoft Infopath XML generated file to work with the Web? Pin
kcgnd15-Jul-09 2:01
kcgnd15-Jul-09 2:01 
AnswerRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Sandy_L_Schultz18-Jul-09 8:20
Sandy_L_Schultz18-Jul-09 8:20 
GeneralRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Sandy_L_Schultz19-Jul-09 12:43
Sandy_L_Schultz19-Jul-09 12:43 
GeneralRe: How to get Microsoft Infopath XML generated file to work with the Web? Pin
Member 120804822-Jul-09 8:52
Member 120804822-Jul-09 8:52 
QuestionHow to calling GetObject() in XML? Pin
whiteclouds14-Jul-09 17:10
whiteclouds14-Jul-09 17:10 
AnswerRe: How to calling GetObject() in XML? Pin
Roll#114-Jul-09 21:10
Roll#114-Jul-09 21:10 
GeneralRe: How to calling GetObject() in XML? Pin
whiteclouds19-Jul-09 20:21
whiteclouds19-Jul-09 20:21 
QuestionValidate Xml without using xmlns Pin
tprakash14-Jul-09 2:05
tprakash14-Jul-09 2:05 
AnswerRe: Validate Xml without using xmlns Pin
Stuart Dootson14-Jul-09 2:36
professionalStuart Dootson14-Jul-09 2:36 
AnswerRe: Validate Xml without using xmlns Pin
Roll#114-Jul-09 21:25
Roll#114-Jul-09 21:25 
QuestionNeed help arguing *against* XML for localization storage. Pin
James Trudel13-Jul-09 10:40
James Trudel13-Jul-09 10:40 
AnswerRe: Need help arguing *against* XML for localization storage. Pin
Stuart Dootson13-Jul-09 13:19
professionalStuart Dootson13-Jul-09 13:19 
QuestionDifferent XSD representation of an element. Pin
Comp_Users11-Jul-09 7:12
Comp_Users11-Jul-09 7:12 
AnswerRe: Different XSD representation of an element. Pin
Stuart Dootson11-Jul-09 7:38
professionalStuart Dootson11-Jul-09 7:38 

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.