Click here to Skip to main content
16,004,901 members
Home / Discussions / XML / XSL
   

XML / XSL

 
GeneralRe: Large XML File Pin
Rebreath27-Feb-04 11:09
Rebreath27-Feb-04 11:09 
GeneralRe: Large XML File Pin
Clickok27-Feb-04 21:14
Clickok27-Feb-04 21:14 
GeneralRe: Large XML File Pin
ian mariano29-Feb-04 20:00
ian mariano29-Feb-04 20:00 
GeneralRe: Large XML File Pin
ssm12268-Mar-04 16:07
ssm12268-Mar-04 16:07 
GeneralChanging the prolog of XML document Pin
Bash24-Feb-04 5:30
Bash24-Feb-04 5:30 
GeneralUpdated question: Changing the prolog of XML document Pin
Bash24-Feb-04 5:34
Bash24-Feb-04 5:34 
GeneralRe: Updated question: Changing the prolog of XML document Pin
Rebreath27-Feb-04 11:01
Rebreath27-Feb-04 11:01 
QuestionHow to pass multiple values for a param to xsl? Pin
vedbu23-Feb-04 9:59
vedbu23-Feb-04 9:59 
I have an xml document with 3 topic elements: Topic1, Topic2, Topic3

I have an xsl stylesheet that has a topic template. I want to be able to select different combinations of topics using xpath and a parameter.

To select all topics I use this: Content/Topics/Topic

To select just Topic1, I use this: Content/Topics/Topic[@name='Topic1']

I have a param named MatchTopic and I want to select any combination of Topics, say Topic1 and Topic2 or Topic1 and Topic3 or Topic2 and Topic3.

I tried this:
<xsl:apply-templates select="Content/Topics/Topic[$MatchTopic]"/>
with the following param value:
<xsl:param name="MatchTopic">Content/Topics/Topic[@name='Product Updates' or @name='Management']</xsl:param>

and it doesn't work. Nothing I try works.

Is it possible to call this template and select any combination of topics using a parameter?

Thanks in advance.
AnswerRe: How to pass multiple values for a param to xsl? Pin
Philip Fitzsimons24-Feb-04 3:23
Philip Fitzsimons24-Feb-04 3:23 
Generalcdata-section-elements Pin
mtone23-Feb-04 5:57
mtone23-Feb-04 5:57 
Generalreading xml schema Pin
Andy H20-Feb-04 5:56
Andy H20-Feb-04 5:56 
GeneralRe: reading xml schema Pin
ian mariano22-Feb-04 11:33
ian mariano22-Feb-04 11:33 
Generalnesting XML tags Pin
Hesham Amin18-Feb-04 22:58
Hesham Amin18-Feb-04 22:58 
GeneralRe: nesting XML tags Pin
ian mariano22-Feb-04 11:42
ian mariano22-Feb-04 11:42 
GeneralRead XSD from embedded resource with VB.NET Pin
mpalmer7818-Feb-04 9:51
mpalmer7818-Feb-04 9:51 
GeneralRe: Read XSD from embedded resource with VB.NET Pin
ian mariano22-Feb-04 11:55
ian mariano22-Feb-04 11:55 
GeneralADVANCE MACRO Pin
hyperrobster18-Feb-04 2:15
hyperrobster18-Feb-04 2:15 
GeneralC# XML App heirarchy Pin
HologramStudios16-Feb-04 5:29
HologramStudios16-Feb-04 5:29 
GeneralXML in C# Pin
rasarit1713-Feb-04 8:32
rasarit1713-Feb-04 8:32 
GeneralRe: XML in C# Pin
Tom Larsen13-Feb-04 9:07
Tom Larsen13-Feb-04 9:07 
GeneralRe: XML in C# Pin
Not Active13-Feb-04 9:50
mentorNot Active13-Feb-04 9:50 
Generalschema location / nonamespaceSchema Pin
Larry102412-Feb-04 22:46
Larry102412-Feb-04 22:46 
QuestionCan u suggest me an Efficient XML parser?? Pin
P_JAYAPRAKASH12-Feb-04 19:46
P_JAYAPRAKASH12-Feb-04 19:46 
AnswerRe: Can u suggest me an Efficient XML parser?? Pin
Member 87353013-Feb-04 6:08
Member 87353013-Feb-04 6:08 
AnswerRe: Can u suggest me an Efficient XML parser?? Pin
Member 87353013-Feb-04 6:08
Member 87353013-Feb-04 6:08 

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.