Click here to Skip to main content
15,909,445 members
Home / Discussions / XML / XSL
   

XML / XSL

 
QuestionOnly Selected portion of XML to Ecel Pin
w13RTH70Lo27-Feb-07 20:55
w13RTH70Lo27-Feb-07 20:55 
AnswerRe: Only Selected portion of XML to Ecel Pin
nirmalamari7-Mar-07 14:56
nirmalamari7-Mar-07 14:56 
QuestionXPATH query to get the child elemets of a node Pin
madhusri27-Feb-07 17:24
madhusri27-Feb-07 17:24 
AnswerRe: XPATH query to get the child elemets of a node Pin
Stefan Troschuetz27-Feb-07 22:18
Stefan Troschuetz27-Feb-07 22:18 
GeneralRe: XPATH query to get the child elemets of a node Pin
madhusri28-Feb-07 2:20
madhusri28-Feb-07 2:20 
GeneralNesting XmlTextWriter Pin
Brady Kelly27-Feb-07 9:03
Brady Kelly27-Feb-07 9:03 
GeneralRe: Nesting XmlTextWriter Pin
Stefan Troschuetz27-Feb-07 22:32
Stefan Troschuetz27-Feb-07 22:32 
QuestionImplementing XSLT constraint Pin
rana7427-Feb-07 0:49
rana7427-Feb-07 0:49 
We are trying to enforce a couple of business constrainrs with XPATH .
A sample xml node is as follows:
.....
.....
<event>
<element>IE</element>
<elementtype>browser</elementtype>
<eventtype>Navigate</eventtype>
<value>http://www.....com/</value>
</event>
.......
.......

If we need to ensure that the XML has ATLEAST one 'element' node containing text as "IE" we do:
<xsl:template match="element[count(IE) < 1]" >
<xsl:text>ERROR: Atleast one IE element needed</xsl:text>
</xsl:template>

But we need to ensure that ATLEAST one of the IE 'event' nodes has a combination of 'element' as IE and 'value' node containing the text "Logout" i.e.

<event>
<element>IE</element>
<elementtype>....</elementtype>
<eventtype>Navigate</eventtype>
<value>...Logout...</value>
</event>

How do we enforce this occuurrence constraint through template?

Questionelement or attribute Pin
spin vector26-Feb-07 2:46
spin vector26-Feb-07 2:46 
AnswerRe: element or attribute Pin
Stefan Troschuetz26-Feb-07 3:52
Stefan Troschuetz26-Feb-07 3:52 
GeneralRe: element or attribute Pin
spin vector26-Feb-07 5:59
spin vector26-Feb-07 5:59 
GeneralRe: element or attribute Pin
DavidNohejl26-Feb-07 11:05
DavidNohejl26-Feb-07 11:05 
Question[ANN] VTD-XML 2.0 Pin
Jimmy Zhang25-Feb-07 21:39
Jimmy Zhang25-Feb-07 21:39 
Questionhow to excute 2 SQLXML statements Pin
w13RTH70Lo24-Feb-07 21:01
w13RTH70Lo24-Feb-07 21:01 
AnswerRe: how to excute 2 SQLXML statements Pin
Stefan Troschuetz24-Feb-07 22:08
Stefan Troschuetz24-Feb-07 22:08 
QuestionXML to Excel Pin
w13RTH70Lo24-Feb-07 1:01
w13RTH70Lo24-Feb-07 1:01 
AnswerRe: XML to Excel Pin
Stefan Troschuetz24-Feb-07 1:15
Stefan Troschuetz24-Feb-07 1:15 
QuestionNo XML Header? Pin
Dominik Reichl23-Feb-07 5:42
Dominik Reichl23-Feb-07 5:42 
AnswerRe: No XML Header? Pin
Stefan Troschuetz23-Feb-07 5:56
Stefan Troschuetz23-Feb-07 5:56 
GeneralRe: No XML Header? Pin
Dominik Reichl23-Feb-07 6:10
Dominik Reichl23-Feb-07 6:10 
Questionconvert database Pin
shereem khaleel22-Feb-07 12:56
shereem khaleel22-Feb-07 12:56 
QuestionHow to query schema to find out if one element type can contain another element type Pin
Edmundisme22-Feb-07 7:34
Edmundisme22-Feb-07 7:34 
Questionlearning .net Pin
Sandep H S21-Feb-07 21:00
Sandep H S21-Feb-07 21:00 
AnswerRe: learning .net Pin
Edmundisme22-Feb-07 7:23
Edmundisme22-Feb-07 7:23 
AnswerRe: learning .net Pin
Ed.Poore22-Feb-07 8:46
Ed.Poore22-Feb-07 8:46 

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.