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 13 of 13
Search took 0.01 seconds.
Search: Posts Made By: Alain COUTHURES
Forum: XML March 16th, 2009, 05:04 AM
Replies: 3
Views: 3,337
Posted By Alain COUTHURES
Within CDATA, everything is nothing but text ! ...

Within CDATA, everything is nothing but text !

Even if it is not very difficult to write a basic XML parser with XSLT, I would suggest to better use procedural for that and/or regular expressions.
Forum: XSLT September 25th, 2008, 01:31 AM
Replies: 4
Views: 3,967
Posted By Alain COUTHURES
You can't access these variables outside the...

You can't access these variables outside the for-each but you can define them with a specific XPath expression such as<xsl:variable name="Mandatory" select="../../Check/Node[@Name =...
Forum: XML July 26th, 2008, 01:33 AM
Replies: 14
Views: 3,117
Posted By Alain COUTHURES
Since "Johnson & Johnson" is not written "Johnson...

Since "Johnson & Johnson" is not written "Johnson &amp; Johnson" in the XML document, this document is not valid, it can't be parsed and, so, no schema can be checked.

The XML document has to be...
Forum: XML July 26th, 2008, 01:18 AM
Replies: 14
Views: 3,117
Posted By Alain COUTHURES
XML is a notation with principles : & has to be...

XML is a notation with principles : & has to be written &amp; or has to be protected within a CDATA section. If so, & can be present in text data.

The external program you are talking of is not good...
Forum: XML July 26th, 2008, 01:03 AM
Replies: 14
Views: 3,117
Posted By Alain COUTHURES
No way... This XML document is not valid !

No way... This XML document is not valid !
Forum: XML July 26th, 2008, 12:57 AM
Replies: 14
Views: 3,117
Posted By Alain COUTHURES
& has to be written as an entity : &amp; instead...

& has to be written as an entity : &amp; instead of &
Forum: XSLT April 28th, 2008, 12:45 PM
Replies: 2
Views: 1,569
Posted By Alain COUTHURES
Sorry but an XSLT variable has a constant value !...

Sorry but an XSLT variable has a constant value !
Programming with XSLT is different !
Forum: XSLT April 25th, 2008, 11:56 AM
Replies: 11
Views: 2,121
Posted By Alain COUTHURES
So, you have to use <xsl:apply-templates...

So, you have to use <xsl:apply-templates select="......."/> instead of <xsl:copy-of select="......."/> and define all the templates you need !
Forum: XSLT April 25th, 2008, 11:07 AM
Replies: 11
Views: 2,121
Posted By Alain COUTHURES
Is it true in your XML document that the first...

Is it true in your XML document that the first pagebreak is also the first sibling ?

If so, with XSLT 1.0, you could use something like<xsl:for-each select="pagebreak">
<xsl:copy-of select="."/>...
Forum: XSLT April 23rd, 2008, 02:11 AM
Replies: 12
Views: 1,696
Posted By Alain COUTHURES
Since it seems this 'HTML' document is, in fact,...

Since it seems this 'HTML' document is, in fact, a well-formed XML document, something like that could do the trick if there is no element between the li elements :<xsl:template match="li">...
Forum: XSLT April 21st, 2008, 11:27 AM
Replies: 5
Views: 1,235
Posted By Alain COUTHURES
There is no root element as a result of XSLT #1...

There is no root element as a result of XSLT #1 or XSLT #2 !?!
Forum: XSLT April 21st, 2008, 01:11 AM
Replies: 3
Views: 707
Posted By Alain COUTHURES
Using XPath you can locate an element according...

Using XPath you can locate an element according to its level attribute with an expression such as this : descendant::*[@level=$mylevel]
Forum: XSLT April 19th, 2008, 10:29 AM
Replies: 12
Views: 1,696
Posted By Alain COUTHURES
Tidy is perfect for converting HTML to XHTML so...

Tidy is perfect for converting HTML to XHTML so this program has many options. If it is just for parsing purposes, a simple function is enough. I have written such a function in C# :...
Showing results 1 to 13 of 13

 


All times are GMT -4. The time now is 10:09 PM.


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