updating custom CSL 0.8 style to CSL 1.0

Hello,

I use a customized style, validated according to the csl 0.8 schema. The style is customized from AMA (American Medical Association).

I tried to update it following the upgrade notes, using http://www.shell-tools.net/index.php?op=xslt and following the instructions.

I received the following output and am not sure where or what the error is.

/var/tmp/FOObvH3hp:1: parser error : Start tag expected, '<' not found
- <xsl:stylesheet xmlns:cs="http://purl.org/net/xbiblio/csl" xmlns="http://purl.
^
cannot parse /var/tmp/FOObvH3hp

Would anyone be able to provide me some ideas on where I might need to look to fix the error?

Thanks
  • edited April 7, 2011
    It looks like you copy and pasted the XSLT stylesheet from a Firefox window, which adds hyphens before collapsible XML elements (which cause the error). You'll need to either copy the stylesheet from the page source (in Firefox, right-click the page and select "View Page Source"), or save the stylesheet to disk and open it with a text editor.
  • Thanks so much for the quick reply.

    You're absolutely right--I did copy and paste from an IE window.

    I did as you suggested and saved the file and then opened with Notepad. Looks like the conversion went through just fine this time. So glad, did not want to have to re-customize the styles

    Thanks so much!

This is an old discussion that has not been active in a long time. Instead of commenting here, you should start a new discussion. If you think the content of this discussion is still relevant, you can link to it from your new discussion.