From 8d785b3c96ab13f50b534c318b93592375db4842 Mon Sep 17 00:00:00 2001 From: grammarware Date: Mon, 12 Jul 2010 06:55:20 +0000 Subject: [PATCH] more coverage of W3C-to-LDF extractor git-svn-id: https://slps.svn.sourceforge.net/svnroot/slps@818 ab42f6e0-554d-0410-b580-99e487e6eeb2 --- shared/tools/checkxml | 2 +- shared/xsd/ldf.xsd | 12 +-- topics/documents/xpath/Makefile | 5 +- topics/documents/xpath/spec2ldf.xslt | 116 ++++++++++++++++++++++++--- 4 files changed, 116 insertions(+), 19 deletions(-) diff --git a/shared/tools/checkxml b/shared/tools/checkxml index 2133a225..7f9b5072 100755 --- a/shared/tools/checkxml +++ b/shared/tools/checkxml @@ -17,5 +17,5 @@ elif [ ! -r ${SLPS}/shared/xsd/$1.xsd ]; then echo "Oops: schema for $1 not found or not readable." exit 1 else - xmllint --noout --schema ${SLPS}/shared/xsd/$1.xsd $2 + /usr/local/bin/xmllint --noout --schema ${SLPS}/shared/xsd/$1.xsd $2 fi diff --git a/shared/xsd/ldf.xsd b/shared/xsd/ldf.xsd index 5dc92df4..aa79730e 100644 --- a/shared/xsd/ldf.xsd +++ b/shared/xsd/ldf.xsd @@ -849,12 +849,12 @@ - Internal links are pairs of text that will become clickable in hypertext - presentation forms or precede the reference itself when this is the only - option. The reference points to a section or a subsection of the same - document that the link should refer to. If the explicit text is omitted, - its default value is the name of the section being referenced. - + Internal links are pairs of text that will become clickable in hypertext + presentation forms or precede the reference itself when this is the only + option. The reference points to a section or a subsection of the same + document that the link should refer to. If the explicit text is omitted, + its default value is the name of the section being referenced. + diff --git a/topics/documents/xpath/Makefile b/topics/documents/xpath/Makefile index 9da50017..fe564282 100644 --- a/topics/documents/xpath/Makefile +++ b/topics/documents/xpath/Makefile @@ -1,10 +1,13 @@ build: - xsltproc spec2ldf.xslt xpath-pp.xml > xpath1.ldf + /usr/local/bin/xsltproc spec2ldf.xslt xpath-pp.xml > xpath1.ldf get: curl -k http://www.w3.org/TR/1999/REC-xpath-19991116.xml >xpath1.xml curl -k http://www.w3.org/TR/2007/REC-xpath20-20070123/xpath20.xml >xpath2.xml curl -k http://www.w3.org/XML/1998/06/xmlspec-v20.dtd > xmlspec-v20.dtd + +test: + ../../../shared/tools/checkxml ldf xpath1.ldf clean: *~ diff --git a/topics/documents/xpath/spec2ldf.xslt b/topics/documents/xpath/spec2ldf.xslt index 4a9e1d6f..0dc36688 100644 --- a/topics/documents/xpath/spec2ldf.xslt +++ b/topics/documents/xpath/spec2ldf.xslt @@ -64,17 +64,111 @@ - - front-matter - - Status of this document - - - - - - - + + + front-matter + + + + scope + + Status of this document + + + + + + + + + + + abstract + + + + + + + + + + + list-of-contents + + + + core-part + + + + + + + foreword + + + + + + + + <xsl:value-of select="head"/> + + + + + + + + + + + + + + + + + + + + + <xsl:value-of select="head"/> + + + + description + + abstract + + + + + + + + + + + + + + + + + + + + + + + + + + + +