MARCEDIT-L Archives

December 2015

MARCEDIT-L@LISTSERV.GMU.EDU

Options: Use Monospaced Font
Show Text Part by Default
Show All Mail Headers

Message: [<< First] [< Prev] [Next >] [Last >>]
Topic: [<< First] [< Prev] [Next >] [Last >>]
Author: [<< First] [< Prev] [Next >] [Last >>]

Print Reply
Subject:
From:
Eugene Espinoza <[log in to unmask]>
Reply To:
MarcEdit support in technical and instructional matters <[log in to unmask]>
Date:
Wed, 9 Dec 2015 08:27:04 -0500
Content-Type:
text/plain
Parts/Attachments:
text/plain (41 lines)
Hi Terry and all! I'm getting the following error when transforming XML to text:
System.ArgumentException: '', hexadecimal value 0x0C, is an invalid character.

I've created an XSLT to transform a file with a snippet below (I've also cleaned the XML through regex because it's malformed:

<root>
<row library="lib4" field="call number" resource_type="Book" circulated="1" resource_id="" key="3122" content="234 234324" hidden="1" linkable="1" searchable="1"/><row library="lib4" field="title" resource_type="Book" circulated="1" resource_id="" key="3122" content="Muslim Perspective" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="author" resource_type="Book" circulated="1" resource_id="" key="3122" content="Amina Rasul" hidden="1" linkable="1" searchable="1"/><row library="lib4" field="classification" resource_type="Book" circulated="1" resource_id="" key="3122" content="100 Philosophy &amp;amp; psychology" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="subject heading" resource_type="Book" circulated="1" resource_id="" key="3122" content="MUSLIM FILIPINOS" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="file attachment" resource_type="Book" circulated="1" resource_id="" key="3122" content="C:\CSNET\Apps\lisa6\lib1\rm\FileUploaded\FILE-0000003122-1034.pdf" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="title" resource_type="Book" circulated="1" resource_id="" key="3123" content="test" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="author" resource_type="Book" circulated="1" resource_id="" key="3123" content="test" hidden="1" linkable="1" searchable="1"/><row library="lib4" field="title" resource_type="Book" circulated="1" resource_id="" key="3124" content="test 555" hidden="0" linkable="1" searchable="1"/><row library="lib4" field="file attachment" resource_type="Book" circulated="1" resource_id="" key="3124" content="C:\CSNET\Apps\lisa6\lib1\rm\FileUploaded\FILE-0000003124-1100.pdf" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="Product number" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="9-207-073" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="title" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Clifford Chance : repotting the tree" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="author" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Kohn&amp;comma! A. Eugene&amp;comma! Arthur I. Segel&amp;comma! and Nhat Nguyen" hidden="1" linkable="1" searchable="1"/><row library="lib3" field="type of material" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Case" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="place of publication" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Boston&amp;comma! MA" hidden="0" linkable="0" searchable="1"/><row library="lib3" field="publisher" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Harvard Business School (HBS)" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="year of copyright" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="2006&amp;comma! 2008" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="year of publication" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="October 18&amp;comma! 2006" hidden="0" linkable="0" searchable="1"/><row library="lib3" field="Revision Date" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="March 10&amp;comma! 2009" hidden="0" linkable="0" searchable="1"/><row library="lib3" field="pages" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="5 p." hidden="0" linkable="0" searchable="1"/><row library="lib3" field="Area of Excellence / Discipline" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Human resources management" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="Subjects Covered" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Finance&amp;comma! Leadership&amp;comma! Strategic leadership&amp;comma! Logistics" hidden="0" linkable="0" searchable="0"/><row library="lib3" field="language used" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="English" hidden="0" linkable="0" searchable="1"/><row library="lib3" field="Country Setting" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="London" hidden="0" linkable="1" searchable="1"/><row library="lib3" field="Learning Objective" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="To understand the risks involved in moving an existing company&amp;comma! the needs of a tenant&amp;comma! how to program for the design of a building." hidden="0" linkable="0" searchable="1"/><row library="lib3" field="abstract" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Clifford Chance&amp;comma! LLP&amp;comma! a global law firm headquartered in London&amp;comma! needs to make a decision whether to stay in the central business district of London or move to a redeveloped business park at Canary Wharf&amp;comma! 3 miles outside of central London. Peter Charleton&amp;comma! head of the London Office&amp;comma! is proposing to move to Canary Wharf and building a single&amp;comma! landmark headquarters with all the necessary amenities and premium fit-outs that is appropriate for an elite law firm. The tension surrounding the case is the choice to move from the hub of commerce in central London to a relatively obscure site whose owners (Olympia &amp; York) have a history of financial bankruptcy. What business elements (clients&amp;comma! operations&amp;comma! employees&amp;comma! etc.) should they consider if they move the firm and how much relative weight do they place on each element? How do they frame the advantages and disadvantages between central London and Canary Wharf? What type of items should they program into the new facility (cellular or open floor plans&amp;comma! ceiling heights&amp;comma! common space&amp;comma! dining facilities&amp;comma! gymnasiums&amp;comma! etc.)? How should they prioritize these items?" hidden="0" linkable="0" searchable="1"/><row library="lib3" field="Date Received by Case Bank" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="February 12&amp;comma! 2009" hidden="0" linkable="0" searchable="0"/><row library="lib3" field="Processed By" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="Cesar Ryan M. Santos" hidden="1" linkable="0" searchable="0"/><row library="lib3" field="Processed Date" resource_type="Audio-Visual Materials" circulated="1" resource_id="000002" key="3131" content="May 15&amp;comma! 2009" hidden="1" linkable="0" searchable="0"/><row library="lib3" field="Product number" resource_type="Audio-Visual Materials" circulated="1" resource_id="000004" key="3132" content="9-309-052" hidden="0" linkable="1" searchable="1"/>
....
</root>

I have the following simple stylesheet (I just want to get the Abstract):

<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
    <!-- <xsl:strip-space elements="*"/> -->
<xsl:output method="text" omit-xml-declaration="yes" indent="no"/>

	  <xsl:template match="/">
      <xsl:for-each select="//row[@field='abstract']">
      <xsl:text>=305  \\$a</xsl:text>
      <xsl:value-of select="@content"/>

	  <xsl:text>$b</xsl:text>
      <xsl:value-of select="@key"/>
     </xsl:for-each>

</xsl:template>
</xsl:stylesheet>


The last line of 8707 and all of line 8708 when opened with Notepad++ are below:
<row library="lib1"
 field="Author 2" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="1" searchable="1"/><row library="lib1" field="Designation 2" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="0" searchable="0"/><row library="lib1" field="subject heading" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="Banks and banking--Islamic countries." hidden="0" linkable="1" searchable="1"/><row library="lib1" field="subject heading 2" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="Banks and banking--Iran." hidden="0" linkable="1" searchable="1"/><row library="lib1" field="call number" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="HC 59 K3712 2005" hidden="0" linkable="0" searchable="1"/><row library="lib1" field="title" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="Islamic banking" hidden="0" linkable="0" searchable="1"/><row library="lib1" field="Author 3" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="1" searchable="1"/><row library="lib1" field="Designation 3" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="0" searchable="0"/><row library="lib1" field="publisher" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="PT RajaGrafindo Persada" hidden="0" linkable="1" searchable="0"/><row library="lib1" field="year of copyright" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="2005" hidden="0" linkable="1" searchable="1"/><row library="lib1" field="Author Related to Series" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="1" searchable="1"/><row library="lib1" field="notes" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="Includes bibliographic references: (p. 367-369)" hidden="0" linkable="0" searchable="1"/><row library="lib1" field="isbn" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="979769013x" hidden="0" linkable="1" searchable="1"/><row library="lib1" field="subject heading 3" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="Banks and banking--Pakistan." hidden="0" linkable="1" searchable="1"/><row library="lib1" field="Subject Heading 5" resource_type="Book" circulated="1" resource_id="AIM0018967" key="26058" content="" hidden="0" linkable="1" searchable="1"/></root>

Hmm, what could be the problem? Thanks in advance and cheers!

________________________________________________________________________

This message comes to you via MARCEDIT-L, a Listserv(R) list for technical and instructional support in MarcEdit.  If you wish to communicate directly with the list owners, write to [log in to unmask] To unsubscribe, send a message "SIGNOFF MARCEDIT-L" to [log in to unmask]

ATOM RSS1 RSS2