Wrox Programmer Forums
| Search | Today's Posts | Mark Forums Read
BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0
This is the forum to discuss the Wrox book XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition by Michael Kay; ISBN: 9780470192740
Welcome to the p2p.wrox.com Forums.

You are currently viewing the BOOK: XSLT 2.0 and XPath 2.0 Programmer's Reference, 4th Edition ISBN: 978-0-470-19274-0 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
  #1 (permalink)  
Old July 24th, 2012, 06:44 AM
Registered User
Points: 5, Level: 1
Points: 5, Level: 1 Points: 5, Level: 1 Points: 5, Level: 1
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Jul 2012
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Default How to process "embedded2.xml" example with msxsl

I occasionally browse this excellent XSLT/XPath book, and wanted to try embedded XSL example (from Chapter 3).

It is mentioned that MSXML (in context of Saxon on .NET) can't process example shown in the book, because "it doesn't notify ID attributes unless you do DTD validation", and as alternative "embedded2.xml" is provided.

I would like to know how can I process this file with msxsl command line processor. For example:

Code:
> msxsl embedded2.xml

Error occurred while parsing command line.

Code:   0xc0000069
Missing stylesheet filename.
or:

Code:
> msxsl embedded2.xml -pi

Error occurred while loading document 'file://C:\temp\embedded2.xml#style1'.

Code:   0x80070003
The system cannot find the path specified.
Thanks in advance
  #2 (permalink)  
Old July 24th, 2012, 08:03 AM
mhkay's Avatar
Wrox Author
Points: 18,487, Level: 59
Points: 18,487, Level: 59 Points: 18,487, Level: 59 Points: 18,487, Level: 59
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Apr 2004
Location: Reading, Berks, United Kingdom.
Posts: 4,962
Thanks: 0
Thanked 292 Times in 287 Posts
Default

Support for embedded stylesheets is not universal and I don't know if they are supported in command-line MSXML.

There is some discussion on browser support for embedded stylesheets here:

http://stackoverflow.com/questions/3...to-an-xml-file

They aren't widely used, probably because they are not universally supported; but also because it's usual to write a stylesheet for a class of documents, rather than for one document alone.
__________________
Michael Kay
http://www.saxonica.com/
Author, XSLT 2.0 and XPath 2.0 Programmer\'s Reference


Similar Threads
Thread Thread Starter Forum Replies Last Post
XML to XML: transforming a "linear group" to a "hierarchical clustering" xmlfab XSLT 1 March 14th, 2012 10:25 AM
MSXSL gives error message for "for" inside "select" ilyaz XSLT 1 December 9th, 2010 05:02 PM
"No rule to process file" superherogeek BOOK: Beginning iPad Application Development 0 July 13th, 2010 01:06 PM
How to theme the "Browse" button of "FileUpload" control? varunbwj BOOK: Beginning ASP.NET 3.5 : in C# and VB BOOK ISBN: 978-0-470-18759-3 2 October 14th, 2009 01:22 AM
Add a CheckBox DataColumn to my DataGridView, Null format: "" or "True" but Error: F ismailc C# 2005 0 September 25th, 2009 04:56 AM





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