Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > Search Forums
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
Welcome to the p2p.wrox.com Forums.

You are currently viewing the section of the Wrox Programmer to Programmer discussions. This is a community of tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
Showing results 1 to 6 of 6
Search took 0.01 seconds.
Search: Posts Made By: metinhoclam
Forum: XSLT August 16th, 2010, 07:53 PM
Replies: 5
Views: 641
Posted By mhkay
Define a key: <xsl:key name="id"...

Define a key:


<xsl:key name="id" match="*[@id]" use="@id"/>


and then write template rules along these lines:


<xsl:template match="destination">
Forum: XSLT August 14th, 2010, 10:11 AM
Replies: 5
Views: 723
Posted By Martin Honnen
If the input is <?xml version="1.0"...

If the input is

<?xml version="1.0" encoding="UTF-8"?>
<root>
<listcontainer>
<box id="a1" size="24" status="saled">
<numberofball>3</numberofball>
</box>
<box id="a2"...
Forum: XSLT August 14th, 2010, 06:21 AM
Replies: 5
Views: 723
Posted By mhkay
Sure, XSLT is very good at this sort of job. You...

Sure, XSLT is very good at this sort of job. You just need three rules:


<xsl:template match="box[numberofball]">
<notemptybox><xsl:value-of select="@id"/></notemptybox>
</xsl:template>
...
Forum: XSLT July 30th, 2010, 01:39 AM
Replies: 8
Views: 900
Posted By samjudson
To fix your problem you don't need to change your...

To fix your problem you don't need to change your input XML, but the output XML. To do this you need to add a root node to the output you are generating in your XSLT - something like this:

...
Forum: XSLT July 29th, 2010, 10:42 AM
Replies: 8
Views: 900
Posted By samjudson
The error is in your output XML - which isn't a...

The error is in your output XML - which isn't a valid XML document.

<PersonName>
...
</PersonName>
<ContactDetails>
...
</ContactDetails>
<AltContactDetails>
...
Forum: XSLT July 27th, 2010, 07:12 PM
Replies: 2
Views: 760
Posted By mhkay
It doesn't look difficult, but I'm not sure I...

It doesn't look difficult, but I'm not sure I fully understand the requirement. Where does the LaneID c001 come from? Why is startevent111 associated with user111 and gateway111 with user222 - is it...
Showing results 1 to 6 of 6

 


All times are GMT -4. The time now is 02:37 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.