Click here to Skip to main content
15,906,947 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: DTD Repository Pin
Paul Watson19-Dec-02 20:40
sitebuilderPaul Watson19-Dec-02 20:40 
GeneralRe: DTD Repository Pin
Christian Graus19-Dec-02 20:49
protectorChristian Graus19-Dec-02 20:49 
GeneralRe: DTD Repository Pin
Paul Watson19-Dec-02 21:00
sitebuilderPaul Watson19-Dec-02 21:00 
GeneralRe: DTD Repository Pin
Michael A. Barnhart20-Dec-02 0:35
Michael A. Barnhart20-Dec-02 0:35 
GeneralRe: DTD Repository Pin
Michael A. Barnhart19-Dec-02 13:15
Michael A. Barnhart19-Dec-02 13:15 
GeneralRe: DTD Repository Pin
Paul Watson18-Dec-02 22:58
sitebuilderPaul Watson18-Dec-02 22:58 
GeneralXML filter for Indexing services Pin
Lucian MATEESCU18-Dec-02 4:49
Lucian MATEESCU18-Dec-02 4:49 
GeneralDifferences between value-of and apply-templates in XSLT Pin
Alfred Taylor13-Dec-02 21:01
Alfred Taylor13-Dec-02 21:01 
can someone explain to me the differences between those two functions? in the simple examples i've been doing, they seem interchangeable. and i read the MSDN xslt reference which shed some light, but not really.

particularly, it says value-of will give me a string of the matched element. great. so that means if i have <element>TESTING</element>

<xsl:value-of select="element"/> will give me "TESTING". as will <xsl:apply-templates select="element"/> which, if there is no template for "element" will use the default template, right? and the default template is basically just outputing the value of the <element> tag?

but msdn also says value-of should give me a concatenation of strings if the matched element has a substructure. so if i had
<element>
<sub>1</sub>
<bleh>2</bleh>
</element>

<xsl:value-of select="element"/> should give me "12", right? well, not when i tried it. or am i misunderstanding? anyway, that's just one question i had. the actual quote from msdn is

"If the node returned is an element with substructure, <xsl:value-of> returns the concatenated text nodes of that element's subtree with the markup removed."

the real question is what's the difference between the two and what would you use them for?
GeneralRe: Differences between value-of and apply-templates in XSLT Pin
Christian Graus13-Dec-02 21:43
protectorChristian Graus13-Dec-02 21:43 
GeneralRe: Differences between value-of and apply-templates in XSLT Pin
surehand14-Dec-02 2:16
surehand14-Dec-02 2:16 
GeneralRe: Differences between value-of and apply-templates in XSLT Pin
Christian Graus16-Dec-02 1:07
protectorChristian Graus16-Dec-02 1:07 
GeneralCache problem Pin
Anonymous12-Dec-02 23:41
Anonymous12-Dec-02 23:41 
GeneralRe: Cache problem Pin
Not Active13-Dec-02 3:24
mentorNot Active13-Dec-02 3:24 
QuestionHow to get the current line of a xml element / node? Pin
Daniel Strigl11-Dec-02 21:50
Daniel Strigl11-Dec-02 21:50 
AnswerRe: How to get the current line of a xml element / node? Pin
Michael A. Barnhart12-Dec-02 0:26
Michael A. Barnhart12-Dec-02 0:26 
GeneralRe: How to get the current line of a xml element / node? Pin
Daniel Strigl12-Dec-02 0:58
Daniel Strigl12-Dec-02 0:58 
GeneralRe: How to get the current line of a xml element / node? Pin
John M.12-Dec-02 7:20
John M.12-Dec-02 7:20 
GeneralRe: How to get the current line of a xml element / node? Pin
Daniel Strigl12-Dec-02 19:57
Daniel Strigl12-Dec-02 19:57 
GeneralRe: How to get the current line of a xml element / node? Pin
Michael A. Barnhart12-Dec-02 8:44
Michael A. Barnhart12-Dec-02 8:44 
QuestionHow to use format-number() function? Pin
amica5-Dec-02 5:15
amica5-Dec-02 5:15 
AnswerRe: How to use format-number() function? Pin
Bjoern Graf5-Dec-02 10:14
Bjoern Graf5-Dec-02 10:14 
GeneralIXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Daniel Strigl4-Dec-02 1:57
Daniel Strigl4-Dec-02 1:57 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Bjoern Graf4-Dec-02 4:29
Bjoern Graf4-Dec-02 4:29 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Michael Dunn4-Dec-02 16:57
sitebuilderMichael Dunn4-Dec-02 16:57 
GeneralRe: IXMLDOMDocumentPtr and IXMLDOMDocument ?!?! Pin
Daniel Strigl4-Dec-02 19:57
Daniel Strigl4-Dec-02 19:57 

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.