Click here to Skip to main content
15,888,351 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionXML Parse - performance Pin
mpavas16-Apr-08 0:25
mpavas16-Apr-08 0:25 
AnswerRe: XML Parse - performance Pin
led mike16-Apr-08 4:52
led mike16-Apr-08 4:52 
GeneralRe: XML Parse - performance Pin
mpavas16-Apr-08 5:01
mpavas16-Apr-08 5:01 
QuestionError : msxml3.dll (0x80072F0C) A certificate is required to complete client authentication Pin
malarpm16-Apr-08 0:06
malarpm16-Apr-08 0:06 
GeneralMathML Pin
Hariharan210515-Apr-08 21:51
Hariharan210515-Apr-08 21:51 
QuestionHow do I import mulitiple XML files into Microsoft Excel in one shot? Pin
Mike A. Fowler15-Apr-08 4:45
Mike A. Fowler15-Apr-08 4:45 
QuestionDoes anyone know how to access entities from an embedded tag? Pin
Mike A. Fowler14-Apr-08 6:09
Mike A. Fowler14-Apr-08 6:09 
AnswerRe: Does anyone know how to access entities from an embedded tag? Pin
Mark J. Miller14-Apr-08 8:58
Mark J. Miller14-Apr-08 8:58 
Just add a new xsl:template element to your XSL that matches the root element. Not sure why it works this way, because I've always done it like this. But this should work for you:

<?xml version="1.0" encoding="utf-8"?>
<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxsl="urn:schemas-microsoft-com:xslt" exclude-result-prefixes="msxsl"
>
<xsl:output method="text" indent="yes"/>

<!-- add this here -->
<xsl:template match="/">
<xsl:apply-templates select="/person/index/part1" />
</xsl:template>
<!-- end addition -->

<xsl:template match="/person/index/part1">
<xsl:text>name is </xsl:text>
<xsl:value-of select="name"/>
<xsl:text>.</xsl:text>
</xsl:template>


</xsl:stylesheet>


My best guess is that you're not telling it what to do with the root "/", so it just includes everything after the match.

Mark's blog: developMENTALmadness.blogspot.com

Funniest variable name:
lLongDong - spotted in legacy code, was used to determine how long a beep should be.
- Dave Bacher

Questionc# XMLNODE SelectNodes Pin
mpavas13-Apr-08 21:36
mpavas13-Apr-08 21:36 
GeneralRe: c# XMLNODE SelectNodes Pin
N a v a n e e t h13-Apr-08 23:02
N a v a n e e t h13-Apr-08 23:02 
GeneralRe: c# XMLNODE SelectNodes Pin
mpavas13-Apr-08 23:17
mpavas13-Apr-08 23:17 
GeneralRe: c# XMLNODE SelectNodes Pin
N a v a n e e t h14-Apr-08 1:50
N a v a n e e t h14-Apr-08 1:50 
GeneralRe: c# XMLNODE SelectNodes Pin
Christian Graus13-Apr-08 23:58
protectorChristian Graus13-Apr-08 23:58 
QuestionRe: c# XMLNODE SelectNodes Pin
mpavas14-Apr-08 0:10
mpavas14-Apr-08 0:10 
GeneralRe: c# XMLNODE SelectNodes Pin
Christian Graus14-Apr-08 0:20
protectorChristian Graus14-Apr-08 0:20 
GeneralRe: c# XMLNODE SelectNodes Pin
mpavas14-Apr-08 0:41
mpavas14-Apr-08 0:41 
QuestionDoes anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler12-Apr-08 6:45
Mike A. Fowler12-Apr-08 6:45 
AnswerRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet12-Apr-08 8:05
pmarfleet12-Apr-08 8:05 
GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler12-Apr-08 9:30
Mike A. Fowler12-Apr-08 9:30 
AnswerRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet12-Apr-08 10:33
pmarfleet12-Apr-08 10:33 
GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
Mike A. Fowler13-Apr-08 3:30
Mike A. Fowler13-Apr-08 3:30 
GeneralRe: Does anyone know how to take a XML file and store it into a C++ structure? Pin
pmarfleet13-Apr-08 3:45
pmarfleet13-Apr-08 3:45 
GeneralXML versioning Pin
helen.gonzalez9-Apr-08 22:23
helen.gonzalez9-Apr-08 22:23 
GeneralRe: XML versioning Pin
led mike10-Apr-08 5:56
led mike10-Apr-08 5:56 
GeneralMaintain the order of the xml Pin
Yariv9-Apr-08 20:38
Yariv9-Apr-08 20: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.