Click here to Skip to main content
15,898,374 members
Home / Discussions / XML / XSL
   

XML / XSL

 
Questionsend DOM Object to server Pin
Member 292037812-Feb-07 18:55
Member 292037812-Feb-07 18:55 
Questioncustomize xml file Pin
Ali el12-Feb-07 3:42
Ali el12-Feb-07 3:42 
AnswerRe: customize xml file Pin
Stefan Troschuetz12-Feb-07 6:05
Stefan Troschuetz12-Feb-07 6:05 
Questionxml parser? Pin
$uresh $hanmugam12-Feb-07 0:48
$uresh $hanmugam12-Feb-07 0:48 
AnswerRe: xml parser? Pin
Stefan Troschuetz12-Feb-07 5:33
Stefan Troschuetz12-Feb-07 5:33 
Questionclient server communication using DOM Pin
Member 292037810-Feb-07 20:42
Member 292037810-Feb-07 20:42 
AnswerRe: client server communication using DOM Pin
Stefan Troschuetz11-Feb-07 1:10
Stefan Troschuetz11-Feb-07 1:10 
QuestionUse one XML document to transform another Pin
Mark J. Miller9-Feb-07 7:44
Mark J. Miller9-Feb-07 7:44 
I have an xml document where certain elements have attributes with generic names and values. Like this:

Data.xml

<DATA sport="football">
<ROW firstname="John" lastname="Doe" s1="130" s2="3" s3="43.3" />
</DATA>

And I have metadata which describes the data. The metadata is not in XML format so if there is an alternative to what I'm attempting to do, please let me know. But what I am trying to do is put the metadata in the following format:

Meta.xml

<METADATA>
<FIELDS sport="football">
<FIELD field="s1" name="RushingYards" />
<FIELD field="s2" name="RushingAttempts" />
<FIELD field="s3" name="RushingYardsPerCarry" />
....... blah, blah, blah .....
</FIELDS>
</METADATA>

I want to create a stylesheet that can use "Meta.xml" to transform Data.xml into this:

<DATA sport="football">
<ROW firstname="John" lastname="Doe" RushingYards="130" RushingAttempts="3" RushingYardsPerCarry="43.3" />
</DATA>

The part I don't know how to do is to tell the XslTransform object to transform Data.xml and use Meta.xml as variable input. Can I simply pass Meta.xml in as a parameter to XslTransform?

AnswerRe: Use one XML document to transform another Pin
Mark J. Miller9-Feb-07 13:11
Mark J. Miller9-Feb-07 13:11 
QuestionRemove/Stop the creation of BOM header (C#) Pin
Duncan Sample9-Feb-07 2:04
Duncan Sample9-Feb-07 2:04 
AnswerRe: Remove/Stop the creation of BOM header (C#) Pin
Stefan Troschuetz9-Feb-07 2:44
Stefan Troschuetz9-Feb-07 2:44 
GeneralRe: Remove/Stop the creation of BOM header (C#) Pin
Duncan Sample9-Feb-07 2:59
Duncan Sample9-Feb-07 2:59 
GeneralRe: Remove/Stop the creation of BOM header (C#) Pin
Stefan Troschuetz9-Feb-07 3:12
Stefan Troschuetz9-Feb-07 3:12 
QuestionRe: Remove/Stop the creation of BOM header (C#) Pin
Duncan Sample9-Feb-07 4:44
Duncan Sample9-Feb-07 4:44 
AnswerRe: Remove/Stop the creation of BOM header (C#) Pin
Stefan Troschuetz9-Feb-07 5:19
Stefan Troschuetz9-Feb-07 5:19 
GeneralRe: Remove/Stop the creation of BOM header (C#) Pin
Duncan Sample9-Feb-07 5:26
Duncan Sample9-Feb-07 5:26 
QuestionRe: Remove/Stop the creation of BOM header (C#) Pin
Duncan Sample15-Feb-07 2:47
Duncan Sample15-Feb-07 2:47 
AnswerRe: Remove/Stop the creation of BOM header (C#) Pin
Stefan Troschuetz15-Feb-07 3:24
Stefan Troschuetz15-Feb-07 3:24 
AnswerRe: Remove/Stop the creation of BOM header (C#) Pin
Duncan Sample15-Feb-07 4:18
Duncan Sample15-Feb-07 4:18 
GeneralRe: Remove/Stop the creation of BOM header (C#) Pin
Stefan Troschuetz15-Feb-07 4:31
Stefan Troschuetz15-Feb-07 4:31 
QuestionCreating aspx page dynamically Pin
Venkatesh.P8-Feb-07 23:40
Venkatesh.P8-Feb-07 23:40 
AnswerRe: Creating aspx page dynamically Pin
Stefan Troschuetz8-Feb-07 23:53
Stefan Troschuetz8-Feb-07 23:53 
QuestionRe: Creating aspx page dynamically Pin
Venkatesh.P8-Feb-07 23:59
Venkatesh.P8-Feb-07 23:59 
AnswerRe: Creating aspx page dynamically Pin
Stefan Troschuetz9-Feb-07 0:46
Stefan Troschuetz9-Feb-07 0:46 
AnswerRe: Creating aspx page dynamically Pin
DavidNohejl9-Feb-07 12:54
DavidNohejl9-Feb-07 12:54 

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.