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

XML / XSL

 
Generalmsxml DOM and character entities Pin
necroleak6-Oct-04 6:03
sussnecroleak6-Oct-04 6:03 
GeneralXML & character entities Pin
necroleak6-Oct-04 1:01
sussnecroleak6-Oct-04 1:01 
GeneralRe: XML & character entities Pin
necroleak6-Oct-04 2:42
sussnecroleak6-Oct-04 2:42 
GeneralWrite XmlElement Pin
Aubyone5-Oct-04 19:49
Aubyone5-Oct-04 19:49 
Generalusing xslt params to search for elements Pin
Mike Hodnick2-Oct-04 18:30
Mike Hodnick2-Oct-04 18:30 
GeneralRe: using xslt params to search for elements Pin
Mike Ellison2-Oct-04 18:38
Mike Ellison2-Oct-04 18:38 
GeneralRe: using xslt params to search for elements Pin
Mike Hodnick2-Oct-04 18:56
Mike Hodnick2-Oct-04 18:56 
GeneralRe: using xslt params to search for elements Pin
Stuart Dootson2-Oct-04 22:04
professionalStuart Dootson2-Oct-04 22:04 
I've just tried your approach in xsltproc (part of libxslt) and it works fine. I presume you are passing a value for folderID into the transform engine???

I used the command 'xsltproc --param folderID 4 a.xsl a.xml' to perform the transform (the xsl and xml names are obvious Smile | :) )

This was the XSL I used (based on yours - the template selector is the same as yours)

<xsl:stylesheet version="1.0"
                xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
                exclude-result-prefixes="xsl">

   <xsl:output method="xml" encoding="ISO8859-1" indent="yes" omit-xml-declaration="no"/>
   <xsl:param name="folderID"/>
   <xsl:template match="/library//folder[@id=$folderID]">
      <Wib>
         <xsl:value-of select="count(./file)"/>
      </Wib>
   </xsl:template>
</xsl:stylesheet>


Stuart Dootson

'Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p'
GeneralRe: using xslt params to search for elements Pin
Stuart Dootson2-Oct-04 22:36
professionalStuart Dootson2-Oct-04 22:36 
GeneralRe: using xslt params to search for elements Pin
Mike Hodnick3-Oct-04 2:07
Mike Hodnick3-Oct-04 2:07 
GeneralMY very own language Pin
shiko2-Oct-04 7:26
shiko2-Oct-04 7:26 
GeneralRe: MY very own language Pin
Alex Korchemniy16-Oct-04 11:27
Alex Korchemniy16-Oct-04 11:27 
QuestionHow to populate grid without reforming an xml Pin
manivannan.p2-Oct-04 2:05
manivannan.p2-Oct-04 2:05 
GeneralXSL For Loop Problem while using variable Pin
jjjkkk1-Oct-04 12:21
jjjkkk1-Oct-04 12:21 
GeneralRe: XSL For Loop Problem while using variable Pin
Mike Ellison1-Oct-04 20:06
Mike Ellison1-Oct-04 20:06 
GeneralRe: XSL For Loop Problem while using variable Pin
jjjkkk4-Oct-04 12:08
jjjkkk4-Oct-04 12:08 
GeneralRe: XSL For Loop Problem while using variable Pin
jjjkkk4-Oct-04 12:16
jjjkkk4-Oct-04 12:16 
GeneralSaving an xml node alone Pin
Member 10971171-Oct-04 11:55
Member 10971171-Oct-04 11:55 
GeneralRe: Saving an xml node alone Pin
necroleak7-Oct-04 1:16
sussnecroleak7-Oct-04 1:16 
GeneralRe: Saving an xml node alone Pin
Member 10971177-Oct-04 9:57
Member 10971177-Oct-04 9:57 
Generalusing XML to save info..please help Pin
jmahdi30-Sep-04 11:17
jmahdi30-Sep-04 11:17 
GeneralRe: using XML to save info..please help Pin
jmahdi6-Oct-04 3:17
jmahdi6-Oct-04 3:17 
GeneralRe: using XML to save info..please help Pin
DavidNohejl7-Oct-04 10:00
DavidNohejl7-Oct-04 10:00 
GeneralRe: using XML to save info..please help Pin
jmahdi16-Oct-04 4:53
jmahdi16-Oct-04 4:53 
GeneralRe: using XML to save info..please help Pin
DavidNohejl18-Oct-04 0:39
DavidNohejl18-Oct-04 0:39 

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.